Re: [PHP-DB] Retricting Access to Menu Items

2006-03-07 Thread Bastien Koert
original - De: Jeffrey <[EMAIL PROTECTED]> Fecha: Lunes, Marzo 6, 2006 7:37 ombr Asunto: Re: [PHP-DB] Retricting Access to Menu Items > I've done this kind of thing with a number of web apps. > > What I usually do is create a user table in MySQL with a user-name, > pas

Re: [PHP-DB] Retricting Access to Menu Items

2006-03-07 Thread Luis Morales
session_id();? > > Best Regards, > Miguel Guirao > > > - Mensaje original - > De: Jeffrey <[EMAIL PROTECTED]> > Fecha: Lunes, Marzo 6, 2006 7:37 ombr > Asunto: Re: [PHP-DB] Retricting Access to Menu Items > > > I've done this kind of thing with

Re: [PHP-DB] Retricting Access to Menu Items

2006-03-06 Thread MIGUEL ANTONIO GUIRAO AGUILAR
6 7:37 ombr Asunto: Re: [PHP-DB] Retricting Access to Menu Items > I've done this kind of thing with a number of web apps. > > What I usually do is create a user table in MySQL with a user-name, > password and access level, which has an integer value. > > When a user

RE: [PHP-DB] Retricting Access to Menu Items

2006-03-06 Thread Bastien Koert
if you pull the user data into a session, then its a simple if them check if ($_SESSION['user']['user_access']>1) //1 = basic user { echo 'Edit Task'; echo 'Add Task'; } bastien From: "Jeff Broomall" <[EMAIL PROTECTED]> To: Subject: [PHP-DB] Retricting Access to Menu Items Date: Mon, 6

Re: [PHP-DB] Retricting Access to Menu Items

2006-03-06 Thread Jeffrey
I've done this kind of thing with a number of web apps. What I usually do is create a user table in MySQL with a user-name, password and access level, which has an integer value. When a user logs in successfully, a session is created (see session_start() in php documentation), the access leve