27 lines
456 B
PHP
27 lines
456 B
PHP
<?php
|
|
include "../../connect.php";
|
|
$country = filterRequest("country");
|
|
|
|
$sql = " SELECT *
|
|
FROM
|
|
`kazan`
|
|
WHERE `country`='$country'";
|
|
$stmt = $con->prepare($sql);
|
|
$stmt->execute();
|
|
|
|
$row = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
|
|
|
if ($row){
|
|
// Fetch the record
|
|
// $row = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
|
|
|
|
|
printSuccess( $row);
|
|
|
|
}
|
|
else{
|
|
// Print a failure message
|
|
|
|
printFailure($message = "No Kazan record found");
|
|
}
|
|
?>
|