connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_KNOWLEDGE." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} } elseif ($_GET['name']=='news') { $showtitle='News'; $db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_NEWS." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} } elseif ($_GET['name']=='retech') { $showtitle='รีวิว เทคโนโลยี'; $db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_RETECH." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} } elseif ($_GET['name']=='woman') { $showtitle='หญิง'; $db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_WOMAN." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} } elseif ($_GET['name']=='man') { $showtitle='ชาย'; $db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_MAN." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} } elseif ($_GET['name']=='homed') { $showtitle='แต่งบ้าน'; $db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_HOMED." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} } elseif ($_GET['name']=='it') { $showtitle='รีวิว ไอที'; $db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_IT." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} }elseif ($_GET['name']=='travel') { $showtitle='รีวิวที่เที่ยว'; $db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_TRAVEL." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} } elseif ($_GET['name']=='webboard') { $showtitle='Webboard'; $db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $Explainselect = $db->fetch($db->select_query("SELECT * FROM ".TB_WEBBOARD." WHERE id = '".$_GET[id]."' ")); $db->closedb (); if ($_GET[id]){ $explain=":".$Explainselect[topic].""; } else {$explain='';} } elseif ($_GET[name]=="aboutus") { $showtitle="Aboutus";} elseif ($_GET[name]=="contact") { $showtitle="Contact Us";} elseif ($_GET[name]=="calendar") { $showtitle="Calendar";} elseif ($_GET[name]=="admin") { $showtitle="Administrator";} else { $showtitle="Bunyiam.com"; } ?> <? echo "".$showtitle."".$explain."" ;?> "> ">