from login, save it in a session
after a successful login, check the user's credentials
im assuming your data is already saved in a table (user name's,user level's, etc.)
then just check it if its an admin
Code:
<?php if($_SESSION['user_level'] == "admin"): ?> <a href="#">Dashboard</a> <?php endif; ?>
Leave a comment: