Making so that some members can see a div and some do not
I have a website where I want a certain element to be visible only to the members who have "permission".
I have a table in my database named members with a number of members.
In that table I have a field called usertype where I have some members who have "read" and some that have "write" as usertype, and I want that only those members who have user type "write" can see some divs on the page, etc. .
Does anyone know how to do this?
$sql=mysql("select usertype from members where ..................");
<div id='blah'> user see this div who have write permission</div>
if anyone know best solution than tell me that i also learn from seniors
Last edited by experts585; 03-06-2012 at 11:31 PM.
I'm very very bad at this but that allwos me to get what members that have write as usertype right?
Originally Posted by experts585
Can I some how use this to know if the current logged in member has usertype write?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread