I'm using the following code with no problems:
But as soon as I try to order it, it stops working- no data comes back out. This is the code I'm using, and so far as I can see, it's faultless:PHP Code:$query="SELECT * FROM {$table} WHERE id = '1' or id % 24 = 0 LIMIT 0, 90";
The field "created", before you ask, does definitely exist and does contain data. The field contains timestamps (e.g. 2009-12-17 16:00:12), but I've tried ordering by other INT fields with the same outcome.PHP Code:$query="SELECT * FROM {$table} WHERE id = '1' or id % 24 = 0 LIMIT 0, 90 ORDER BY created";
Thanks, mrrsman



Reply With Quote


Bookmarks