I guess you have misplaced the closing brace. See the possible correct codes below.
if (!isset($_REQUEST['search'])){
while($write=mysql_fetch_array($gamesearched)){
if($write != null) {
echo "Found!";
}else{
echo "No results";
}
}
}
or
while(($write=mysql_fetch_array($gamesearched)) != null){
if (!isset($_REQUEST['search'])){
echo "Found!";
} else {
echo "No results";
}
}