<?php
|
|
|
|
//5-16-17
|
|
|
|
include_once '../../club_connect.php';
|
|
|
|
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']));
|
|
//
|
|
// foreach ($_POST as $key => $value)
|
|
// {
|
|
// echo $value . '<br>';
|
|
// }
|
|
$q = "insert into scores(game, user_id, score) values('$i_game','$i_user_id','$i_score')";
|
|
if($i_user_id > 0)
|
|
{
|
|
$r = mysqli_query($dbc, $q);
|
|
}
|
|
|
|
//
|
|
//
|
|
// echo '<h1>' . $q . '</h1>';
|
|
|
|
|
|
|
|
|
|
if($i_game == 1)
|
|
{
|
|
header("Location: bamboofield.php");
|
|
}
|
|
|
|
}
|
|
|
|
?>
|