i'm not familiar with PHP, but your SELECT syntax is incorrect.
when you wanna use SELECT statement with WHERE caluse, you need to pay attention to the apostrophe.
if you wanna select from a filed that have been defined as an integer, you DO NOT use apostrophe, differently from a field that defined as string where there you must use apostrophe.
__________________
eLad
|