-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheadscoutProcess.php
67 lines (54 loc) · 1.04 KB
/
headscoutProcess.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
include("databaseName16.php");
print_r($_POST);
$con= mysql_connect($address, $username, $password);
if (!$con){
die('Could not connect: ' . mysql_error());
}
mysql_select_db($database, $con);
$sql = "INSERT INTO `".$database."`.`".$headscoutProcess."`
(`rd1`,
`rd2`,
`rd3`,
`bd1`,
`bd2`,
`bd3`,
`matchnumber`,
`rt1`,
`rt2`,
`rt3`,
`bt1`,
`bt2`,
`bt3`,
`ri1`,
`ri2`,
`ri3`,
`bi1`,
`bi2`,
`bi3`)
VALUES
('".$_POST['rd1']."',
'".$_POST['rd2']."',
'".$_POST['rd3']."',
'".$_POST['bd1']."',
'".$_POST['bd2']."',
'".$_POST['bd3']."',
'".$_POST['matchnumber']."',
'".$_POST['rt1']."',
'".$_POST['rt2']."',
'".$_POST['rt3']."',
'".$_POST['bt1']."',
'".$_POST['bt2']."',
'".$_POST['bt3']."',
'".$_POST['ri1']."',
'".$_POST['ri2']."',
'".$_POST['ri3']."',
'".$_POST['bi1']."',
'".$_POST['bi2']."',
'".$_POST['bi3']."')";
echo($sql);
if (!mysql_query($sql,$con)){
die('Error: ' . mysql_error());
}
echo "Report submitted. Please do not refresh this page.<br>";
?>