id . "' LIMIT 1"); if(isset($_POST['stem']) AND isset($_POST['cijfer']) AND is_numeric($_POST['cijfer'])){ if($_POST['cijfer']<=5 AND $_POST['cijfer']>=1){ $stemsql=mysql_fetch_assoc($query3); if(!eregi($_SERVER['REMOTE_ADDR'],$stemsql['stemmers'])){ $ip=$stemsql['stemmers']." ".$_SERVER['REMOTE_ADDR']; $updatequery=mysql_query("UPDATE game SET stemmen=stemmen+1,cijfer=cijfer+'".mysql_real_escape_string($_POST['cijfer'])."', stemmers='$ip' WHERE id='" . $current_game->id . "' LIMIT 1"); } } } ?> GameJeRot.nl
id . "';"; mysql_query($query); $query2=mysql_query("SELECT * FROM game WHERE id='" . $game->id . "' LIMIT 1"); $game1=mysql_fetch_assoc($query2); ?>
"; }elseif($cijfer==2){ $sterren=""; }elseif($cijfer==3){ $sterren=""; }elseif($cijfer==4){ $sterren=""; }elseif($cijfer==5){ $sterren=""; }else{ $sterren=$cijfer; } }else{ $cijfer="0"; $sterren=""; } echo "
"; echo "
"; echo "Gespeeld: $game->views keer | Score: $sterren | Beoordeeld: $game->stemmen keer"; if(!eregi($_SERVER['REMOTE_ADDR'],$game1['stemmers'])){ echo ' | Jouw score: '; } echo "

"; echo "
"; include "adgame.html"; echo "
"; ?>