function get_car_url($url) {
global $dbh;
$cars = $dbh->prepare("SELECT * FROM `cars` WHERE `name_url` = '$url'");
$cars->execute();
foreach ($cars as $car) {
return $car;
}
if ($url <> $car["name_url"]) {
http_response_code(404);
include('my_404.php');
die();
}
}