|
Posted by mannerboy on 10/13/31 11:39
i haven't read through it ,but i wish something below can be helpful!
if(empty($_SESSION['search_sql']) && isset($_POST[submit])){
// to construct search_sql
$search_sql = ......
$SESSION[search_sql] = $search_sql;
}else{
$search_sql = $_SESSION[search_sql];
}
$per_page = 20;
$start = ($pageno-1)*$per_page;
$query = mysql_query($search_sql." LIMIT ".$start.",".$per_page,$link);
............
Navigation:
[Reply to this message]
|