-
Notifications
You must be signed in to change notification settings - Fork 0
/
insertPHP.php
28 lines (20 loc) · 853 Bytes
/
insertPHP.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
$Banking = $_POST['x'];
$Scarlet = $_POST['y'];
$Bouncer = $_POST['z'];
$back = "<a href = 'insertHTML.html'> Go Back </a>";
if(!is_numeric($Banking) || !is_numeric($Bouncer) ){
die("enter valid Banking <br>$back");
}
include('connectFN.php');
$con = dbconnect();
$sql = "Insert Into data Values ( $Banking , '$Scarlet' , $Bouncer)";
if($con -> query($sql) == TRUE){
$status = "Record Added Successfully.";
echo '<p style="color:#FF0000; text-align: center; align-items: center;">' . $status . '</p>';
}else{
echo '<p style="color:#FF0000; text-align: center; align-items: center;">' . $con->error . '</p>';
}
echo '<p style="color:#FF0000; text-align: center; align-items: center; text-decoration: none;">' . $back . '</p>';
$con -> close();
?>