Jump to content

SELECT SQL Query


SVC

Recommended Posts

hi,

 

i have just tried that and cant get it to work, this is my SELECT that works for the first one, i also have other information being collected from other tables in the same statement.

 

"SELECT * FROM ((properties LEFT JOIN regions ON regions.region_id=properties.region_id) LEFT JOIN countries ON countries.country_id=properties.country_id) LEFT JOIN clients ON clients.client_id=properties.owner_id WHERE status=1 AND approved=1 AND (expiry_date='0000-00-00' OR expiry_date>='$today') ORDER BY property_id DESC LIMIT 1"

Link to comment
https://forums.phpfreaks.com/topic/84003-select-sql-query/#findComment-427494
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.