allora qui
Codice PHP:if(isset($_POST['invia']) || isset($_GET['page']))
{
$currentPage = (!$_GET['page'])?1:(int)$_GET['page'];
$where = "";
if(isset($_POST['name'])) $where.= "and name like '%".$_POST['name']."%' ";
if(isset($_POST['rating'])) $where.= "and rating = '".$_POST['rating']."' ";
if(isset($_POST['region'])) $where.= "and region like '%".$_POST['region']."%' ";
if(isset($_POST['province'])) $where.= "and province like '%".$_POST['province']."%' ";
if(isset($_POST['city'])) $where.= "and city like '%".$_POST['city']."%' ";
if(!isset($_GET['page'])) $_SESSION['where'] = $where;
$where = ($_POST['where'] != "") ? $_POST['where'] : $_SESSION['where'];

Rispondi quotando