Anyway, I have a navigation system, and it gives me this error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a1728691/public_html/includes/functions.php on line 21
The php code to show it is:
And the function [This is part of a "bigger" part of coding, thus there is no <?php and ?> tags as they come earlier/later on.]:PHP Code:<?php navigation(); ?>
PHP Code:function navigation()
{
if( is_logged_in() ){
echo '<a href='index.php'>Home</a><br />';
echo '<a href='news.php'>News</a><br />';
echo '<a href='logout.php'>Logout</a><br />';
} else {
echo '<a href='index.php'>Home</a><br />';
echo '<a href='login.php'>Login</a><br />';
echo '<a href='signup.php'>Signup</a><br />';
echo '<a href='news.php'>News</a><br />';
}
}







Reply With Quote






Bookmarks