hi all,
which paging is considered faster or more efficient - session variables or mySQL ordering (sorting) and passing the start line number to the next search?!
or what are the other solutions?
thanks....
I dont know what you mean by sessions variables, but the way I do it is have a $pageno and then multiply it by $numperpage, ect. I think the way im speaking off is the second version of what you suggested.
session variables are the ones you register for your session on the server - like this
$_SESSION['me_var'] = $search_result;
and then you can access those on the next page like:
$results = $_SESSION['me_var];
.....
what if the search results have to be processed and only a part of them should to be showed depanding on the processing?! how to page those?!?...
i just want to try one last time to get somebody's wisdome on this because apparently is not very hard to do - the question is which way to do it. the situation is that the search results are being processed on the page that displays them and ONLY SOME of them should be displayed depending on what comes out of the the processing... i don't know in advance how many will the procesed ones be, so i need to store all of the results (somewhere - like a session variable) and then show the desired # on each page....
is this the correct way to do it? should i drop down the live of the session variables (if i use them) to 30 min in the php.ini? or less? .....
thanks.....