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... Quote Link to comment 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"; } Quote Link to comment Share on other sites More sharing options...
techiefreak05 Posted August 1, 2006 Author Share Posted August 1, 2006 Thanks alot!! :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.