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 = "/rated.html"; }else{ $cononical = "/$_GET[w]/$_GET[p]-rated.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]; $cat_name = ucFirst($rowc[cat_name]); $cat_url = $rowc[cat_url]; $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_link = "$scat_name"; $mt_cat_name = strtolower($scat_name)." "; } 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 rated <?=ucwords($mt_cat_name);?>games at Newflashgame.com<?=$meta_title_end;?>
Home Top Rated Games Top Rated Games Top Rated Games
Top Rated Top Rated Top Games
Plays : Fans :