Jump to content
xisto Community
Sign in to follow this  
BoFrost

Need Help need help in programming...

Recommended Posts

i don?t know why the debugger says, that this script has an error:<?phpfunction menuelink($link, $liname, $liname2, $tdcolor){ echo "<tr>\n"; echo "<td bgcolor='$tdcolor'>\n"; echo "<font face='Comic Sans MS'> <a href='/$link?inh=$liname'>$liname2</a></font></td>\n"; echo "</tr>\n";}function menueub($ubname, $tdcolor2){ echo "<tr>\n"; echo "<td bgcolor='$tdcolor2'>\n"; echo "<font face='VERDANA,ARIAL,HELVETICA' color='#EFEFEF'><b>> $ubname</b></font></td>\n"; echo "</tr>\n";}echo "<tr>\n";echo "<td align='left' width='800'>\n";echo "<table width='130' cellspacing='1' bgcolor='#000000' cellpadding='1' align='left'>\n";menueub("Main", "#407CBF");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menueub("Main", "#407CBF");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menueub("Main", "#407CBF");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");echo "</table>\n";echo "<table width='130' cellspacing='1' bgcolor='#000000' cellpadding='1' align='right'>\n";menueub("Main", "#407CBF");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menueub("Main", "#407CBF");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menueub("Main", "#407CBF");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");menuelink("index.php", "Home", "Home", "#54A3E2");echo "</table>\n";?>it says: parse error, unexpected T_ECHO in line 40why?? what is wrong?

Share this post


Link to post
Share on other sites

Show me your 40th line :rolleyes:

<?phpfunction menuelink($link, $liname, $liname2, $tdcolor)
{
echo "<tr>\n";
echo "<td bgcolor='$tdcolor'>\n";
echo "<font face='Comic Sans MS'> <a href='/$link?inh=$liname'>$liname2</a></font></td>\n";
echo "</tr>\n";
}

function menueub($ubname, $tdcolor2)
{
echo "<tr>\n";
echo "<td bgcolor='$tdcolor2'>\n";
echo "<font face='VERDANA,ARIAL,HELVETICA' color='#EFEFEF'><b>> $ubname</b></font></td>\n";
echo "</tr>\n";
}

echo "<tr>\n";
echo "<td align='left' width='800'>\n";
echo "<table width='130' cellspacing='1' bgcolor='#000000' cellpadding='1' align='left'>\n";
menueub("Main", "#407CBF");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menueub("Main", "#407CBF");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menueub("Main", "#407CBF");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");

echo "</table>\n";
echo "<table width='130' cellspacing='1' bgcolor='#000000' cellpadding='1' align='right'>\n";

menueub("Main", "#407CBF");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menueub("Main", "#407CBF");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menueub("Main", "#407CBF");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");
menuelink("index.php", "Home", "Home", "#54A3E2");


echo "</table>\n";
?>

I suppose it isn't a menuelink :) Show all your script :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.