-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsert.php
More file actions
22 lines (17 loc) · 717 Bytes
/
insert.php
File metadata and controls
22 lines (17 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
if (!isset($_GET['name']) && !isset($_GET['mob']) && !isset($_GET['quant'])) {
header("location: index.php");
}else{
$name = $_GET['name'];
$mob = $_GET['mob'];
$quant = $_GET['quant'];
$dbi = new SQLite3('robot.db');
$resultsi = $dbi->query('INSERT INTO customer_details (c_name,c_mobile,c_count,entry_time) VALUES ("'.$name.'","'.$mob.'","'.$quant.'",datetime("now","localtime"))');
echo '
<div class="alert alert-success" role="alert" id="calert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<i class="fas fa-bell"></i> Customer is Registered Successfully!
</div>
';
}
?>