-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstaffInsert.php
42 lines (33 loc) · 1.16 KB
/
staffInsert.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
<?php
echo "<script type='module' src='https://cdn.jsdelivr.net/npm/@ionic/core@next/dist/ionic/ionic.esm.js'></script>";
echo "<script nomodule src='https://cdn.jsdelivr.net/npm/@ionic/core@next/dist/ionic/ionic.js'> </script>";
echo " <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/@ionic/core@next/css/ionic.bundle.css'/>";
if($_POST){
$connect=@mysqli_connect("localhost","root","","staffdetails");
$sid=$_POST['sid'];
$name=$_POST['name'];
$fname=$_POST['F_name'];
$mname=$_POST['M_name'];
$dob=$_POST['dob'];
$aadhar=$_POST['aadhar'];
$passport=$_POST['passport'];
$gender=$_POST['gen'];
$h_no=$_POST['H_no'];
$street=$_POST['street'];
$city=$_POST['city'];
$state=$_POST['state'];
$country=$_POST['country'];
$pin=$_POST['pin'];
echo "$dob ,$sid,$name,$fname,$mname,$dob,$aadhar,$passport,$gender,$h_no,$street,$city,$state,$country,$pin";
$q="INSERT INTO staff values( '$sid','$name','$fname','$mname','$dob','$aadhar','$passport','$gender','$h_no','$street','$city','$state','$country','$pin')";
$result=mysqli_query($connect,$q);
if($result)
{
echo "inserted";
}
else
{
echo " not inserted";
}
}
?>