-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutinsertion.php
28 lines (22 loc) · 1016 Bytes
/
aboutinsertion.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
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "toystoredb";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "INSERT INTO about (aboutus, mission,vision)
VALUES ('Dream Land 40 years of experience in the sale of toys, doctors specializing in the field of child development,
interested in finishing the skills and intelligence and senses of the child,
offers the child the opportunity to bring out his skills and innovations.', 'We are interested in improving and developing the skills and intelligence of the child, and developing the senses of the child.', 'To become the first and largest exhibition to show and sell all toys in Egypt and the Middle East.');";
if ($conn->multi_query($sql) === TRUE) {
echo "New records created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
$conn->close();
?>