$connect=new MyDB();
$act=new Action();
$page_name=$act->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);
?>
echo $page_info['text']; ?>
}else{
header('location:index.php');
}
?>