as - $as
"; $an = $ac; if($as != '') { $an = $as; $rts = "AND `parent_id` != '0' "; }else{ $rts = "AND `parent_id` = '0' "; } //echo "an - $an
"; if($ac == '') { $qry = "WHERE `status` = '0'"; $str = '?'; $cononical = "/top.html"; }else{ $cononical = "/$_GET[w]/$_GET[p]-top.html"; $sqlcat = "SELECT * FROM `dir_category` WHERE `cat_url` = '$an' $rts"; $resultcat = mysql_query($sqlcat) or die('Error, query failed ' . mysql_error()); $rowc = mysql_fetch_array($resultcat); $cat_id = $rowc['id']; $sqlcat = "SELECT * FROM `dir_category` WHERE `id` = '$cat_id'"; $resultcat = mysql_query($sqlcat) or die('Error, query failed ' . mysql_error()); $rowc = mysql_fetch_array($resultcat); $cat_id = $rowc[id]; $parent_id = $rowc[parent_id]; $path = $rowc[path]; $l_path = explode("/", $path); $l_path_name = explode(": ", $rowc[path_name]); $cat_name = $l_path_name[0]; $cat_name = ucFirst($cat_name); $cat_url = $l_path[0]; $mt_cat_name = strtolower($cat_name)." "; if($l_path_name[1] != '') { $scat_url = $l_path[1]; $scat_name = $l_path_name[1]; $sub_cat_links = "$scat_name"; $mt_cat_name = strtolower($scat_name)." "; } //echo "cat - $l_path_name[0]
ss - $scat_name
li -$sub_cat_link "; if($as == '') { $qry = "WHERE `cat_id` = '$cat_id' AND `status` = '0' OR `p_id` = '$cat_id' AND `status` = '0' "; $str = "?ac=$ac&"; }else{ $qry = "WHERE `cat_id` = '$cat_id' AND `status` = '0' "; $str = "?ac=$ac&as=$as&"; } } ?> Top <?=ucwords($mt_cat_name);?>Games at Newflashgame.com
Home Most Played Games Most Played Games Most Played Games
Top Top Top Games
Plays : Fans :