$sql = $cn->selectdb("SELECT `meta_tag_title`, `meta_tag_description`, `meta_tag_keywords` FROM `tbl_page` where page_id=$page_id" ); // echo $cn->numRows($sql2); if ($cn->numRows($sql) > 0) { $row1 = $cn->fetchAssoc($sql); $page_id_f=$page_id; } ?> if(isset($cid)) { $sql = $cn->selectdb("SELECT `meta_tag_title`, `meta_tag_description`, `meta_tag_keywords` FROM `tbl_category` where slug='".$cid."'" ); // echo $cn->numRows($sql2); if ($cn->numRows($sql) > 0) { $row1 = $cn->fetchAssoc($sql); } } ?>