Jump to content

SQL QUERY NOT WORKING HELP HELP!!


newb

Recommended Posts

Are you getting any kind of error? Is it just not producing any results?

 

One way to check it would be to echo the query to check if everything is feeding into it right:

 

$query = "SELECT *,from_unixtime(date,'%Y-%m%-%d') as date1 FROM items WHERE disabled != 1 GROUP BY cat_id WHERE date1 = DATE_SUB(curdate(), INTERVAL 1 DAY)  ORDER BY date desc";

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.