Jump to content

iTech

New Members
  • Posts

    2
  • Joined

  • Last visited

iTech's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks so much you saved me so much time! I appreaciate this thank you very much !
  2. Hello I need help concerning my code. I can't figure out how, if the user has logged in with the usertype as "admin". If so they should see a link if not then they are normal user. Here is an image of the database here is my code: $queryget = mysql_query("SELECT usertype FROM tbl_usernames") or die ("Query failed."); $row = mysql_fetch_assoc($queryget); if($_SESSION['username']= $row['usertype'] == "admin") { echo "<p><a href='create_user.php'>Create a new user</a></p>"; } else { echo "You are a normal user."; }
×
×
  • Create New...

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.