Greetings and Good Day ... and happy spring to all the westerners
I have a little problem with my query below...
Could some pro offer advise on how I am structuring it wrong ??
$getlisting="Select photo_1,photo_2,photo_3,photo_4,photo_5,title,price,description,
agents.phone,agents.fax,agents.cell,agents.email,agents.website,agents.agent_logo
FROM listings LEFT JOIN agents on listings.agent_id=agents.agent_id";
the above query works
however when I insert the where clause It does not work
WHERE listing_id='5'
$getlisting="Select photo_1,photo_2,photo_3,photo_4,photo_5,title,price,description,
agents.phone,agents.fax,agents.cell,agents.email,agents.website,agents.agent_logo
FROM listings WHERE listing_id='5' LEFT JOIN agents on listings.agent_id=agents.agent_id";
this is the error I get :::
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
Thanks for looking
Cheers