0"; $head_title = 'ศูนย์รวมข่าว บทความ คลิปอาเซียน จากทุกสำนักทั่วประเทศ'; $topic = "uAsean News"; $topic_link = ""; break; } $tag = $_GET["tag"]; if($tag){ $tag = "AND content.tag = '".$tag."'"; }else{ $tag = ""; } function getGroup($url){ $url_index = strpos($url,'.com/')+5; $url = substr($url,$url_index ,strlen($url) - $url_index); $url_end = strpos($url,'/'); $url = substr($url,0 ,$url_end); switch($url) { case "news" : $group = "=1"; break; case "article" : $group = "=2"; break; case "clip" : $group = "=3"; break; case "travel" : $group = "=4"; break; default : $group = "<>0"; break; } return $group; } function getTag($url){ $url_index = strpos($url,'.com/')+5; $sub_url = substr($url,$url_index ,strlen($url) - $url_index); $url_end = strpos($sub_url,'/'); $sea = substr($sub_url,0 ,$url_end); if($sea == 'keyword'){ $url_index = strpos($url,'.com/')+ 13; $url = substr($url,$url_index ,strlen($url) - $url_index); $url_end = strpos($url,'/'); $url = substr($url,0 ,$url_end); $url = rawurldecode($url); $tag = "AND content.tag = '".$url."'"; } return $tag; } ?> Error Query [SELECT * FROM fb_feed WHERE feed_id =1769 LIMIT 1]