I have the following variable $areacode: this variables value is used for search query(search by areacode, and showing the result in each time it shows 5 records and if the user clicks next it gets the next 5 records: that where i am having the problem:" when the user clicks next it is loosing the value what ever was there before.
when the user clicks next the page is getting resubmitted, the same page itself.
How can i save the areacode value to a session and reuse it: again and again.
And also the condition i am using below does'nt look good, please if you don't mind can you correct.
if( $areacode!=null ){
$areacode_substr = " and a.areacode like '%".$areacode."%' ";
}else{
$areacode_substr = "";
}
Thank you very much for the info.