Re: Authenticating users

2003-01-16 Thread Zak Greant
On Thu, Jan 16, 2003 at 01:13:54PM -0300, Cesar Aracena wrote: > Hi all, > > I have this admin site where the administrators can add new ones of > their kind (admin level) and now I'm trying to make a query so no > usernames are duplicated in MySQL. > > The query goes like this: > > $query1 = "S

Re: Authenticating users

2003-01-16 Thread Stefan Hinz, iConnect \(Berlin\)
Cesar, your PHP problem is here: $query1 = "SELECT * FROM r2k_admin WHERE adminuser = $user"; It's supposed to be "WHERE adminuser = '$user' ", because $user is a string. Regards, -- Stefan Hinz <[EMAIL PROTECTED]> Geschäftsführer / CEO iConnect GmbH Heesestr. 6, 1216