Hello peeps, got a fast question here!
How can i echo out some text if the current user logged in with the username Sorcher ?
Hard to explain for me, but im guessing this could be done in a few lines.

Recommended Answers

All 2 Replies

hello

if you are storing username in SESSION then this is very simple

if($_SESSION['username']=='Sorcher')echo "Hello Sorcher";

But since this is so easy, i guess your problem is different.

Vinayak
Happy New Year

oh damn, i've had one typo messing with my brain all the time.
This was what i was doing but i've put it wrong, i feel more noobish than i really am. Thanks allot sir, i appreciate the reply!
Solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.