I am having a problem with the following code. While it executes ok and extremely fast, when the output is displayed, the browser still shows that something is loading for 2-3 seconds. I've tried it with both Firefox and Chrome and get the same results -> Immediate page execution and display of the contents but then waiting time for nothing to happen.
Thanks a lot!
$file_db = new PDO('sqlite:sqlite/mydatabase.sqlite3');
$result = $file_db->query('SELECT * FROM hotels where longitude > 5 and latitude>43');
foreach($result as $row)
//close the database connection