Hi !
I have something strange once again and can't figure it out.
Here's the case:
I have a search routine which searches by keyword entered through a database like this:
$SQL_statement = "SELECT * FROM maintable WHERE description LIKE '%$keyword%' LIMIT " . $start . "," . $limiet;
where $start=offset and $limiet=10, then $limiet is incremented by 10 and the search is done again.
Works...
Now, i want to search the keyword by category, so i do this:
$SQL_statement = "SELECT * FROM maintable WHERE description LIKE '%$keyword%' AND cat_id='$detectnumber' ORDER BY id, description LIMIT " . $start . "," . $limiet;
Let's say it finds 35 matches. Clikcing on page 2 (using a previous and next routine) should get me to page 2, but it gets me nothing. Clicking on page 2 increments $start and does the 2nd statement again btw.
So i'm a bit lost. Is the upper code correct?
Any hints would be really helpfull..
Fish