Jump to content

Archived

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

techiefreak05

SESSION help!!!!

Recommended Posts

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...

Share this post


Link to post
Share on other sites
if($_SESSION['username'] == "example"){ echo "MESSAGE THAT ONLY 1 USER WILL SEE"; }

Share this post


Link to post
Share on other sites

×

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.