Commit caf584e6 authored by Manideep2897's avatar Manideep2897 Committed by GitHub

modified php for continuous

parent c48c0739
......@@ -23,7 +23,7 @@
// Attempt to query database table and retrieve data
try {
$stmt = $pdo->query('SELECT LATITUDE, LONGITUDE FROM routes ');
$stmt = $pdo->query('SELECT LATITUDE, LONGITUDE FROM routes WHERE sno IN (SELECT MAX(sno) FROM routes)');
while($row = $stmt->fetch(PDO::FETCH_OBJ))
{
// Assign each row of data to associative array
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment