value in database 'members' shows a link w

2019-08-06 14:21发布

问题:

I hope my question is not hard to answer, i tried to check this here but i couldn't find the answer i seek. Even tried Google but he didn't understand the question ;).

So here is my question:

I have a database called members and there is a row that is called admin. I have 2 values in there: YES and NO (might change that to 0 or 1).

YES = You are an admin

NO = You are not an admin

Now i wonder how to get a link appear when someone is an admin in html/php when users have YES (or 1) as value in the row admin in the database and when there is NO (or 0) then he shows nothing.

How do i do that?