![]() |
else statements
Im having a bit of trouble figuring the else statements out. I got a login for the site but i cant get it to display logout instead of login if the user is logged in.
Here is what i got: PHP Code:
Where am i goin wrong ? :( |
it seems that you closed the double quotation with a single one and no semi colon in both echo statements. f
when you write a string you either go "this is a string" or 'this another string'. They have their own advantages. try this: php Code:
|
ah i see yea the quotes i fixed after i posted it was just ; i forgot about thanks!
|
| All times are GMT. The time now is 01:58 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0