PDA

View Full Version : query problem


davehaz
05-09-2005, 06:44 PM
Hi I am trying to run this query,
SELECT * FROM listings WHERE stnum LIKE {$_SESSION['stnum']} && stname LIKE {$_SESSION['stname']

it comes up with this error,
Invalid query: Unknown column 'VINLAND' in 'where clause'

any ideas on what is happening hear, VINLAND is data in a field in a row in the db.

tia

hemebond
05-09-2005, 11:09 PM
What aboutSELECT * FROM `listings` WHERE `stnum` LIKE '{$_SESSION['stnum']}' && `stname` LIKE '{$_SESSION['stname']}'