mysql - php show specific site menu based on user login name -


i have site has menu non members , 1 members shown depending on if user logged in or logged out know how have additional menu show specific user upon login using user email address determine user shown third menu.

thanks in advance

try out!

<?php  if (isset($_session['logged']) && $email == "email@example.com") {      //show special menu example: admin menu  } else if (isset($_session['logged'])) {      //show members menu here  } else {      //show normal menu code   }  ?> 

happy help!


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -