cleansql($_GET['page']); $page_name=$act->cleansql($_GET['page']); if($page_name==''){ header('location:index.php'); } $con=$connect->connect(); $result = mysqli_query($con,"SELECT * FROM tbl_option where `key`='$page_name'"); if(!$result) { echo mysqli_errno($con) . mysqli_error($con); return false; } if(mysqli_num_rows($result)>0){ $page_info=mysqli_fetch_assoc($result); ?>