runnerjp Posted February 22, 2007 Share Posted February 22, 2007 <?php if($auth['displayname'] == "") { echo "Welcome <font size=\"3\" face=\"Times\"> <b>Guest</b> please <a href=\"register.php\">Register</a>"; } else { echo "you are logged in as".$auth['displayname']; } ?> this is my what if statement, it works great but when i try and bold $auth['displayname']; this it says there is an error... any 1 able to tell me why and how i can bold it without the error.. its probs very easy as it should be lol but i cant seem to get it to work so i thought its best to ask some one who knows. Link to comment https://forums.phpfreaks.com/topic/39617-solved-error-within-if-statement/ Share on other sites More sharing options...
ted_chou12 Posted February 22, 2007 Share Posted February 22, 2007 <?php if($auth['displayname'] == "") { echo "Welcome <font size=\"3\" face=\"Times\"> <b>Guest</b> please <a href=\"register.php\">Register</a>"; } else { echo "you are logged in as <b>".$auth['displayname']."</b>"; } Link to comment https://forums.phpfreaks.com/topic/39617-solved-error-within-if-statement/#findComment-191185 Share on other sites More sharing options...
runnerjp Posted February 22, 2007 Author Share Posted February 22, 2007 that worked freat thanks.... so i had to stick the last bit in speach makrs to separate it from text Link to comment https://forums.phpfreaks.com/topic/39617-solved-error-within-if-statement/#findComment-191188 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.