Jump to content

mysql_query LIMIT doesn't work


ayok

Recommended Posts

Hi,

A short question. I've got this query

$fetch = mysql_query("SELECT * FROM table LIMIT 0,3 ORDER BY date DESC")or
die(mysql_error());

But then I get mysql error for the limit. I think because I order it based on the date.

 

Could anybody tell why and how to fix this?

 

Thank you,

ayok

Link to comment
https://forums.phpfreaks.com/topic/125004-mysql_query-limit-doesnt-work/
Share on other sites

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.