Limit syntax

wxdqz

New Member
I have this:
$sql = "select * from topics where forumid='$forumid' order by last_post_date desc limit '$firstlimit', '$secondlimit'";

Is this the wrong syntax?

I've tried doing "limit 10" and "limit 0,10" and "limit 2,10" but it's never worked. Please help :)

Here's the error:

You have an error in your SQL syntax near ''0', '1'' at line 1
 
Back
Top