I've used the LIMIT function in mySql 5.0 with no problem. Such as:
sql = "select * from Events order by EventDate DESC, 'LIMIT 0,3'"
I have tried to use the same query on a mySql 4.1.22 server and I don't get an error but it doesn't adhere to the LIMIT part of the query.
Any ideas on a way to pull four rows from a table without the LIMIT function? I want the four most recent entries in the table.
I would appreciate any help you could give.
Thanks,
Kris91261
sql = "select * from Events order by EventDate DESC, 'LIMIT 0,3'"
I have tried to use the same query on a mySql 4.1.22 server and I don't get an error but it doesn't adhere to the LIMIT part of the query.
Any ideas on a way to pull four rows from a table without the LIMIT function? I want the four most recent entries in the table.
I would appreciate any help you could give.
Thanks,
Kris91261