0

I'm having a login system with a "special message for" system. Only the user called johndoe will see that message.

if ( isset($_SESSION['username']) && $_SESSION['username'] == 'johndoe' ) {
echo "<p>You have a message, just for you!</p>";
} else {
echo "<p>You have no messages, you're a loner. Just kidding.</p>';
}

How can I make it so I can also add janedoe, so they both see the same message?

0 Answers0