I have a page that pulls info and displays it based on search criteria, am using pagination as well. You then click on that link and it takes you to a page with more details. On this page I want the options Previous & Next.
I am trying to pass an array from page 1 to page 2 but not really sure how. I am believe I need to serialize my array on page 1 and then unserialize it on page 2, then use that info to pull more details out of the db
Can someone help me with this? I don’t know where I would “serialzie” it or what to pass
[code=php]$num_rows = mysql_num_rows($result);
while ($r=mysql_fetch_array($result)){
$userID=$r[“userID”];
if (0 < $c && 0 == $c % $cells_wide){
<a href=’profile.php?userID=$r[userID]’><div id=’name’>$userID</div> </a>”;
$c++;
} // end of while
echo ” <a href=’test1.php?userID=$r[userID]’>UserIDs </a> “;
I’ve read the serialize info of the PHP Manual and still very confused.