You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
370 B
17 lines
370 B
<?php
|
|
|
|
error_reporting(0);
|
|
include '../DB.php';
|
|
try {
|
|
$conn = new DB();
|
|
|
|
if ($conn) {
|
|
$sql = "SELECT distinct(latitude),longitude,linker,linktel,address,site,create_at from factory ORDER BY create_at desc limit 0,5";
|
|
$result = $conn->getAll($sql);
|
|
echo json_encode($result);
|
|
}
|
|
} catch (Exception $e) {
|
|
die($e->getMessage());
|
|
}
|
|
|
|
|
|
|