Re: [PHP-DB] Using OR in a SELECT statement

2006-03-28 Thread Miles Thompson
At 02:40 AM 3/28/2006, Arno Kuhl wrote: Newbie MySQL question... I have a situation where if I don't have a custom value then I must use the default value. There will always be a default value but there may also be a custom value. I could do this with: select value where id and custom

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