isset($_SESSION) ? : session_start(); include ("admin/connect.php"); include ("include/sysfcuntion.php"); $id = isset($_GET["id"]) ? $_GET["id"] : ""; $pid = isset($_GET["pid"]) ? $_GET["pid"] : $id; $page = isset($_GET["page"]) ? $_GET["page"] : "1"; $title = isset($_GET["title"]) ? $_GET["title"] : ""; $sqlcount = "select * from product where state=1 and cover!=''"; if ($id != "") { $sqlcount .= " and sid in ($id)"; } if($title != ""){ $sqlcount .= " and id in (select pid from labelbyproduct where lid = $title)"; } $count = mysqli_query($connection, $sqlcount); $num_rows = mysqli_num_rows($count); if (($num_rows % 9) > 0) { $num_rows = ($num_rows / 9) + 1; } else { $num_rows = $num_rows / 9; } ?> include ("include/top.php"); ?>