Jump to content

hide button from different users


black_box

Recommended Posts

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
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.