Thursday, 19 September 2013

PHP if statement using session data to display different content for different users

PHP if statement using session data to display different content for
different users

I checked other threads on this site but none of the solutions proposed
worked for me.
I want to check session data for a user, and depending on the output
display different data for different ranks. The code I currently have is
below:
<?php
if($_SESSION['user']['rank'] == founder)
{
echo "Yay";
}
?>

No comments:

Post a Comment