I would like to display admin button on the menu only if the $_SESSION['user']
is equal to say a variable with $admins
(which I would like to store several values as in several users).
I know I can do this through SQL, but I would like to know if this is possible through PHP and if so how.
edit: to be more specific I know I can do it by looking up the database for a user matching the admin group, but I do not have this setup.
Even if SQL is the easiest option I really hope there is a way with PHP, I was reading about PHP_AUTH_USER
quite a bit, but I'd like to store several users in a variable, if that is possible?