MrRSMan
12-18-2009, 07:01 PM
I'm using the following code with no problems:
$query="SELECT * FROM {$table} WHERE id = '1' or id % 24 = 0 LIMIT 0, 90";
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:
$query="SELECT * FROM {$table} WHERE id = '1' or id % 24 = 0 LIMIT 0, 90 ORDER BY created";
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.
Thanks, mrrsman
$query="SELECT * FROM {$table} WHERE id = '1' or id % 24 = 0 LIMIT 0, 90";
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:
$query="SELECT * FROM {$table} WHERE id = '1' or id % 24 = 0 LIMIT 0, 90 ORDER BY created";
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.
Thanks, mrrsman