session_start(); require_once("includes/connection.php"); db_connect(); $SQL="select * from tbl_category where category_id='1'"; $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='8' "; $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; } } $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)) { $contact_title_tag=$objt->contact_title_tag; $contact_meta_tag=$objt->contact_meta_tag; $contact_meta_description=$objt->contact_meta_description; } } ?>