session_start(); require_once("includes/connection.php"); db_connect(); $strfilename="about.html"; $filename ="cms/".$strfilename; if(is_file($filename)) { $fd=fopen($filename,"r"); $about_us=fread($fd,filesize($filename)); } $SQL="select * from tbl_category where category_id='1' order by sequence"; $res=mysql_query($SQL); $numrows=mysql_num_rows($res); if($numrows>0){ while($obj=mysql_fetch_object($res)) { $strCatID=$obj->category_id; $strDescription=$obj->description; $strImage=$obj->image; } } $SQL3="select * from tbl_cms where cms_id='".$_REQUEST['ID']."' "; $res3=mysql_query($SQL3); $numrows3=mysql_num_rows($res3); if($numrows3>0){ while($obj3=mysql_fetch_object($res3)) { $strTitle=$obj3->cms_title; $strfilename=$obj3->cms_file; $filename ="cms/".$strfilename; $fd=fopen($filename,"r"); $cms_desc=fread($fd,filesize($filename)); fclose($fd); } } $SQLh="select * from header_alt_tag where header_id='1' "; $resh=mysql_query($SQLh); $numrowsh=mysql_num_rows($resh); if($numrowsh>0){ while($objh=mysql_fetch_object($resh)) { $home=$objh->home; $aboutus=$objh->aboutus; $news=$objh->news; $enquiry=$objh->enquiry; $contact=$objh->contactus; $sitemap=$objh->sitemap; } } $seo="select * from tbl_category where category_id='1'"; $seorec=mysql_query($seo); $seono=mysql_num_rows($seorec); if($seono>0){ while($seoobj=mysql_fetch_object($seorec)) { $linkcatid=$seoobj->category_id; $linkseo=$seoobj->seocategory; } } $SQLt="select * from tbl_meta_tags where auto_id='1' "; $rest=mysql_query($SQLt); $numrowst=mysql_num_rows($rest); if($numrowst>0){ while($objt=mysql_fetch_object($rest)) { $about_title_tag=$objt->about_title_tag; $about_meta_tag=$objt->about_meta_tag; $about_meta_desc=$objt->about_meta_description; } } ?>