I've loaded the latest php version and had a question regarding what I believe may be a casting issue I had skipped in a previous version.
I currently can query a $search string and paginate (the pagination is a function) perfectly on strings but if the first value is an integer I cannot paginate properly...also a query for 0 returns an error. Do I have to settype the $search_string to a string value in the function? Just a bit confused as to why the integer values aren't being read as strings.
Function example called for paging:
/ NEXT /
function NextResult($page_num) {
GLOBAL $page_num,$search_string,$Pagination,$results_found,$max_results,$pages;
$nextpage_num=$page_num+1;
$prevpage_num=$page_num-1;
if ($page_num != $pages) {
echo "<a title=\"Next Results\" href=\"?search_string=$search_string&page_num=$nextpage_num&Pagination=$Pagination\"><img src=./images/next.gif border=0></a>";
}
}