<?php
//connect
//ordering the latitude
$query="SELECT Latitude FROM Position ORDER BY Latitude ASC";
$result=mysql_query($query);
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit;
}
while ($row = mysql_fetch_assoc($result)) {
echo $row['Latitude']."<br />";
}
?>
Try the above code.
Go through the following
http://php.net/manual/en/function.mysql-fetch-assoc.php
Reputation Points: 16
Solved Threads: 17
Junior Poster in Training
Offline 87 posts
since Dec 2009