-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddc.php
59 lines (42 loc) · 1.29 KB
/
addc.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
<!DOCTYPE HTML>
<html dir=RTL>
<head>
<meta charset="UTF-8">
<title>מערכת לניהול אירועים</title>
<link rel="stylesheet" type="text/css" href="include/cssstyle.css">
<script language="JavaScript" src="include/javascript.js"></script>
</head>
<body onLoad=mark()>
<script>document.write(header)</script>
<div id="wrapper">
<main>
<h2>שינוי בגודל האירוע</h2>
<section>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "reservvationmanager";
$conn = mysqli_connect($servername, $username, $password, $dbname); // Create connection
if (!$conn) // Check connection
{
die("Connection failed: " . mysqli_connect_error());
}
$sql="UPDATE reservation
SET Size_of_the_event =('".$_POST['Size_of_the_event']."')
WHERE
Reservation_Code=('".$_POST['Reservation_Code']."')";
if (mysqli_query($conn, $sql)) {
echo "New record created successfully return to table";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
mysqli_close($conn);
?>
</section>
</main>
<script>document.write(sideNav)</script>
<script>document.write(footer)</script>
</div>
</body>
</html>