Simple website with some JavaScript games.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
570 B

<?php
//5-16-17
if(isset($_POST['game_new_score']))
{
$i_game = mysqli_real_escape_string($dbc, trim($_POST['game']));
$i_user_id = mysqli_real_escape_string($dbc, trim($_POST['user_id_score']));
$i_score = mysqli_real_escape_string($dbc, trim($_POST['score_validate']));
$q = "insert into scores(game, user_id, score) values('$i_game','$i_user_id','$i_score')";
$r = mysqli_query($dbc, $q);
echo("<meta http-equiv='refresh' content='1'>");
}
?>