black_box Posted October 21, 2007 Share Posted October 21, 2007 I want to make a site and it can only viewed by login. All user will use same login screen. Is it possible to make some of the button hidden from users? If then how i can do it? all the buttons can be visible by admin only Thanx in advance Link to comment https://forums.phpfreaks.com/topic/74237-hide-button-from-different-users/ Share on other sites More sharing options...
pocobueno1388 Posted October 21, 2007 Share Posted October 21, 2007 Well, assuming you have a database setup where all your user information is stored and you have a field that stores there rank, you can do this. <?php //select rank from database if ($row['rank'] == 'admin'){ //code for button here } ?> Link to comment https://forums.phpfreaks.com/topic/74237-hide-button-from-different-users/#findComment-375013 Share on other sites More sharing options...
black_box Posted October 21, 2007 Author Share Posted October 21, 2007 Yah i have the rank in the database i will try this and let u knw thanx for the fast reply i m really glad to get ur help Link to comment https://forums.phpfreaks.com/topic/74237-hide-button-from-different-users/#findComment-375016 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.