Fix: rebase code - app highest record
This commit is contained in:
@@ -11,13 +11,13 @@ function get_app_highest_record($maestro_id, $app_id, $player_id) {
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param("iii", $maestro_id, $app_id, $player_id);
|
||||
$stmt->execute();
|
||||
$stmt->bind_result($highest_record);
|
||||
$stmt->bind_result($app_highest_record);
|
||||
$stmt->fetch();
|
||||
$stmt->close();
|
||||
|
||||
return $highest_record;
|
||||
return $app_highest_record;
|
||||
|
||||
echo "\nget_app_highest_record : $highest_record";
|
||||
// echo "\nget_app_highest_record : $app_highest_record";
|
||||
}
|
||||
|
||||
|
||||
@@ -32,10 +32,10 @@ function remove_app_highest_record($maestro_id, $app_id, $player_id) {
|
||||
$stmt->bind_param("iii", $maestro_id, $app_id, $player_id);
|
||||
$stmt->execute();
|
||||
|
||||
echo "\ndelete_app_highest_record";
|
||||
// echo "\ndelete_app_highest_record";
|
||||
}
|
||||
|
||||
function insert_app_highest_record($maestro_id, $app_id, $player_id, $highest_record) {
|
||||
function insert_app_highest_record($maestro_id, $app_id, $player_id, $app_highest_record) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
@@ -43,10 +43,10 @@ function insert_app_highest_record($maestro_id, $app_id, $player_id, $highest_re
|
||||
VALUES (?, ?, ?, ?, NOW());
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('iiid', $maestro_id, $player_id, $app_id, $highest_record);
|
||||
$stmt->bind_param('iiid', $maestro_id, $player_id, $app_id, $app_highest_record);
|
||||
$stmt->execute();
|
||||
|
||||
echo "\ninsert_app_highest_record";
|
||||
// echo "\ninsert_app_highest_record";
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user