[PHP-DB] Using variables within a SELECT statement

2001-11-28 Thread Kevin Ruiz
I'm working on an application that selects a user's userid if their password and login match. If the login and password match I want my variable $cir to run its own select statement and return its corresponding contactid...for this example we'll say that value = 5. I then want to plug in $cir

Re: [PHP-DB] Using variables within a SELECT statement

2001-11-28 Thread Richard Crawford
Try, $query=select * from my_contacts where contactid like '$cir'; Kevin Ruiz wrote: I'm working on an application that selects a user's userid if their password and login match. If the login and password match I want my variable $cir to run its own select statement and return its