You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
420 B
PHP
10 lines
420 B
PHP
<?php
|
|
|
|
$msgs = $database->select('messages', ['username', 'message', 'time'], ['AND' => [
|
|
'lat[>]' => $searchbounds[0]->getLatitudeInDegrees(),
|
|
'lat[<]' => $searchbounds[1]->getLatitudeInDegrees(),
|
|
'long[>]' => $searchbounds[0]->getLongitudeInDegrees(),
|
|
'long[<]' => $searchbounds[1]->getLongitudeInDegrees()],
|
|
"ORDER" => "time DESC",
|
|
"LIMIT" => 30
|
|
]); |