Hello all,
I have a very nice previous | next pagination script that I found at
http://www.evolt.org/article/Multiple_Pages_With_PHP/17/19340/
and it is very well explained from what I can see -
BUT there is a line here that I cannot figure out.
My existing query which is:
SELECT * FROM contacts WHERE l_area IN ('" . implode("','", $POST['l_area']) . "') AND l_type IN ('" . implode("','", $POST['l_type']) . "') AND l_active=1 and l_status='$l_status' OR l_id='$ref'
Does not fit nicely into:
SELECT * FROM your_table WHERE name LIKE '%". $query ."%'"); // the query.
I get no results when I add my WHERE like this:
SELECT * FROM contacts WHERE '%". l_area IN ('" . implode("','", $POST['l_area']) . "') AND l_type IN ('" . implode("','", $POST['l_type']) . "') AND l_active=1 and l_status='$l_status' OR l_id='$ref'
Can someone please check this out and let me know how I've botched this pretty straight-forward code?