-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapkaupdate.php
36 lines (28 loc) · 907 Bytes
/
apkaupdate.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
<?php
$hostname = "localhost";
$password = "";
$username = "root";
$db = "APKAUPDATE";
$firno = $_POST['firno'];
$district = $_POST['district'];
$station = $_POST['station'];
$officer = $_POST['officer'];
$mobile = $_POST['mobile'];
$query = $_POST['query'];
$datereg = $_POST['date'];
$timereg = $_POST['time'];
$conn = mysqli_connect($hostname,$username,$password,$db);
if(!$conn) {
echo "Connection Unsuccessful".'<br>'.mqsqli_connect_error($conn);
die();
} else {
$quer = "INSERT INTO FIRTABLE values('$firno','$district','$station','$officer','$mobile','$query','$datereg','$timereg')";
// $quer = "INSERT INTO FIRTABLE values('67437','OUTER','SEEMAPURI','KRISHNA RAI',9818351018,'You have stolen my phone','22/12/2016','16:42');";
if(mysqli_query($conn,$quer)) {
echo "Data Uploaded!!";
} else {
echo "Data not uploaded ".mysqli_error($conn);
}
}
mysqli_close($conn);
?>