techiefreak05 Posted August 1, 2006 Share Posted August 1, 2006 Hi, I hold the usernames of my site in SESSIONS, this is what I use: $_SESSION['username'], now how do i do something like this : [code]if $_SESSION['username'] = "example"{echo "MESSAGE THAT ONLY 1 USER WILL SEE"}[/code]So basically,if the session equals something, echo something.. but IDK the right PHP syntax... Link to comment https://forums.phpfreaks.com/topic/16198-session-help/ Share on other sites More sharing options...
Ifa Posted August 1, 2006 Share Posted August 1, 2006 if($_SESSION['username'] == "example"){ echo "MESSAGE THAT ONLY 1 USER WILL SEE"; } Link to comment https://forums.phpfreaks.com/topic/16198-session-help/#findComment-66982 Share on other sites More sharing options...
techiefreak05 Posted August 1, 2006 Author Share Posted August 1, 2006 Thanks alot!! :D Link to comment https://forums.phpfreaks.com/topic/16198-session-help/#findComment-66985 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.