1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php require_once('basic_info.php');
global $dbh;
if (!empty($_POST["event_id"]) && !empty($_POST["player_id"])) { for($i = 1; $i <= 18; $i++){ $sql = "update scores set hole_" . $i . " = ?, lastupby=?, lastupdate=? where event_id = ? and player_id = ?"; $parameters = array((int)$_POST["hole_".$i], $_SESSION['cmsloginid'], $nowdate, (int)$_POST["event_id"], (int)$_POST["player_id"]); bind_pdo($sql, $parameters); }
header("Location: scores_modifyform2.php?msg=2&event_id=".$_POST["event_id"]."&player_id=".$_POST["player_id"]); }else{ echo "<script>alert('Event ID and Player ID cannot empty.'); location.href='scores_index.php'</script>"; exit; }
|