Re: [PHP-DB] Hiding Admin Link

2009-05-01 Thread kurokawa tds.net
Easy way to do it is if you use a MySQL database to store it. Do $username = (name of user); $admin = mysql_query( SELECT * FROM usertable WHERE user='$username' ); if( $admin-admin ) { print a href='/adminarea'ADMIN/a } $username -- variable to hold the name of the user. $admin -- query to

Re: [PHP-DB] Hiding Admin Link

2009-05-01 Thread harvey
You can start by creating a login system http://www.phpeasystep.com/workshopview.php?id=6 Then you can do an if/then statement to show the link only to people who have logged in... On 4/30/2009 10:29 PM, Joey Hendricks wrote: Hello, I am very new at PHP so I will try to explain my question

[PHP-DB] Hiding Admin Link

2009-04-30 Thread Joey Hendricks
Hello, I am very new at PHP so I will try to explain my question the best I can. I was wondering if there was a way to have a link show only to the owner of the site? Like having a Admin link for editing posts, but hidden to all users except the owner. Thank you very much for your time!!