Jump to content

[SOLVED] error with if($auth :(??


runnerjp

Recommended Posts

i keep getitng this error

 

Parse error: syntax error, unexpected T_ELSE in /home/runnerse/public_html/include/header.inc.php on line 5

 

why??

 

<?
if($auth[displayname] == "")// if the variable is empty execute the fallowing
{
echo'Welcome Guest, please <a href="register.php">register';
{
else
{
echo"you are logged in as".$auth[displayname];
}
?>

Link to comment
https://forums.phpfreaks.com/topic/39283-solved-error-with-ifauth/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.