27 lines
514 B
PHP
27 lines
514 B
PHP
<?php
|
|
|
|
include "../connect.php";
|
|
$phoneNumber = filterRequest("phone_number");
|
|
|
|
$sql = "SELECT
|
|
*
|
|
FROM
|
|
`phone_verification_passenger`
|
|
WHERE
|
|
`phone_verification_passenger`.`phone_number` = '$phoneNumber'
|
|
";
|
|
$stmt = $con->prepare($sql);
|
|
$stmt->execute();
|
|
|
|
if ($stmt->rowCount() > 0) {
|
|
// Fetch the records
|
|
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
|
|
|
printSuccess($rows);
|
|
|
|
} else {
|
|
// Print a failure message
|
|
printFailure($message = "No Phone verified yet found");
|
|
}
|
|
|
|
?>
|