i need to create a pagination code for php. i found many php codes around the web and found them very usefull, but never found one which really suited my needs.
What i need is:
1) i select which category i need to search for from a FORM, then i sumbit the result.
2) in the viewresult page you get the value of the category chosen via the $_POST function
$category =$_POST[category];
then the catergory is searched for from the MYSQL database
sql = ..... WHERE category=\"$category"\
Go to next page
with the part of code where i need to go to next page i need to send the value of the category
the problem i am finding is that since it is refreshing on the same page the value of category is coming to "null" since the first value of category was taken from another page with the $_POST function.
is there a way how i can overcome this problem?
hope i explained my self: i will try and post the code later on