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
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
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
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
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