Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Code:
select * from articles where category='$cat' order by date_added desc limit '$cur','$max'
First, the limit values are numeric, not strings. Drop the '
Second, but this is minor, the correct SQL syntax is
Code:
LIMIT {how_many} OFFSET {starting_row}
So, I would suggest you to try
Code:
select * from articles where category='$cat' order by date_added desc limit $cur offset $max
__________________
Only a biker knows why a dog sticks his head out the window.
|