-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeleteDriver.php
44 lines (29 loc) · 925 Bytes
/
deleteDriver.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
43
44
<?php
include("config.php");
include("/src/Firebase.php");
$email = $_REQUEST["email"];
$tableName = 'drivers';
$getTokenSql = " SELECT ID,GCMID FROM drivers WHERE email=? " ;
$getTokenStatement = $conn->prepare($getTokenSql);
$getTokenStatement->execute(array($email));
$GCMID_ID = $getTokenStatement->fetch();
$GCMID = $GCMID_ID['$GCMID'];
$ID = $GCMID_ID['ID'];
$sql = " DELETE FROM cars WHERE driverID = ?" ;
$stml = $conn->prepare($sql);
$stml->execute(array($ID));
$firebaseData = array("status" => "3");
Firebase::sendData($firebaseData,$GCMID,"driver");
$sql = " DELETE FROM drivers WHERE email = ?" ;
$stml = $conn->prepare($sql);
$stml->execute(array($email));
// password too short
// screenshot (menu not showing)
// logout (doesn't log out)
// edit phone no.
// price (sabir)
// location (tell Islam to make back to normal)
// Islam Bug
// routing
// versioning
?>