-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
save_UseMULImages.php
35 lines (29 loc) · 1.03 KB
/
save_UseMULImages.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
session_start();
ini_set("display_errors", 1); error_reporting(E_ALL);
require('./logger.php');
require_once('./db.php');
$playerId = isset($_GET["playerId"]) ? $_GET["playerId"] : "";
$useMulImages = isset($_GET["useMulImages"]) ? $_GET["useMulImages"] : "";
echo "<!DOCTYPE html>\n";
echo "<html lang='en'>\n";
echo "<body>\n";
if (!empty($playerId)) {
$sql = "UPDATE asc_options SET UseMULImages=".$useMulImages." WHERE playerid=".$playerId;
//echo "Enable MULImages: " . $useMulImages . " for playerId: " . $playerId;
//echo $sql;
if (mysqli_query($conn, $sql)) {
echo "<p style='font-family:Arial,sans-serif;font-size:14px;color:yellow;'>";
echo "Record (asc_options) updated successfully.";
echo "</p>";
mysqli_commit($conn);
//echo "<script>top.location.reload();</script>";
} else {
echo "<p style='font-family:Arial,sans-serif;font-size:14px;color:yellow;'>";
echo "Error (asc_options) updating record: " . mysqli_error($conn);
echo "</p>";
}
}
echo "</body>\n";
echo "</html>\n";
?>