$start_pos = 0, $num_links = 15, $order_by = "added"
My SQL:
Code: Select all
SELECT * FROM `aref_users` LIMIT $start_pos,$num_links ORDER BY $order_byError: "You have an error in your SQL syntax near ' ORDER BY ' at line 1"
When I switch the "LIMIT $start_pos,$num_links" and the "ORDER BY $order_by", I get the error: "You have an error in your SQL syntax near 'LIMIT ,' at line 1"
Any help?
