"; //echo "W = $val_w
"; $key = $_REQUEST['txtSearch']; $key = str_replace("games", "", $key); $key = str_replace("Games", "", $key); $key = str_replace("GAMES", "", $key); $key = str_replace("-", " ", $key); $key = str_replace("_", " ", $key); //echo $key; $meta_title = str_replace("_", " ", $_REQUEST['txtSearch']); $meta_title = str_replace("-", " ", $meta_title); $meta_title = str_replace(".", "", $meta_title); $meta_title = str_replace("games", "", $meta_title); $meta_title = str_replace("Games", "", $meta_title); $meta_title = str_replace("GAMES", "", $meta_title); $meta_title = ucwords($meta_title); if($meta_title != 'Cooking' && $meta_title != 'Decor' && $meta_title != 'Makeover' && $meta_title != 'Sue' && $meta_title != 'Winx' && $meta_title != 'Bratz' && $meta_title != 'Wedding' && $meta_title != 'Dress Up' && $meta_title != 'Dressup' && $meta_title != 'DressUp') { $title_tag = " Dress Up"; }else{ $title_tag = ""; } //$meta_title_tag = $meta_title.$title_tag; $meta_title_tag = $meta_title; $sql = "SELECT * FROM `games` WHERE `cat_name` = '$key' OR `cat_url` = '$key' OR `sub_cat_name` = '$key' OR `sub_cat_url` = '$key' OR `title` LIKE '%$key%' OR `description` LIKE '%$key%' LIMIT 0, 1"; //echo $sql; $res = mysql_query($sql) or die('Error, Select query failed ' . mysql_error()); $count = mysql_num_rows($res); if($key == 'Enter keywords'){ header("Location: /search.html"); } elseif($count == 0){ include 'src.html'; } else{ if($_POST['txtSearch'] != ''){ $src_word = strtolower($_POST['txtSearch']); $ch_val = checkAlphaNumeric($src_word); if($ch_val == 1){ header("Location: /search.html"); }else{ $val = str_replace(" games", "", strtolower($_POST['txtSearch'])); $val = str_replace("games", "", $val); $val = str_replace(" ", "-", $val); $val = str_replace(".", "-", $val); $path = "/search-".strtolower($val)."-1.html"; header("Location: $path"); } } include 'link_count.php'; include 'users_online.php'; include 'online.php'; $w = $_REQUEST['w']; $w = (($w*10)-10); $st = $w; $pr = $_REQUEST['pr']; if((!$st || ($st < 0))) $st = 0; if(!$pr) $pr = 10; $slr = round($st/$pr, 0)+2; $next = $st+$pr; if($st <= $pr) { $back = 0; }else{ $back = $st-$pr; } if($_REQUEST['w'] > '0') { $meta_title_end = " - page $_REQUEST[w]"; } ?> Girl Games, Makeover, Cooking, Kids, Games for Girls<?=$meta_title_end;?> <?=ucwords($meta_title_tag);?> Games<?=$meta_title_end;?>

Games

"; $topresult = mysql_query($topsql) or die('Error, query failed ' . mysql_error()); $ss1 = mysql_num_rows($topresult); if($ss1 != 0) { while($toprow = mysql_fetch_array($topresult)) { $sbt = $toprow['sub_cat_url']; if($sbt != '') { $spr = '/'; $subt = $sbt.$spr; }else{ $subt = ''; } $urlp = $toprow['cat_url']."/".$subt; $fnt = $toprow['content_name']; $gnamet = substr($fnt,0,strrpos($fnt,'.')); $xs = $s%2; if($xs ==0) { $class = "game1"; } else { $class = "game2"; } $s++; ?>

...

:
No result found...
$pr) { ?>