echo "
"; // start a table tag in the HTML
while($row = mysql_fetch_array($result)){ //Creates a loop to loop through results
echo "" . htmlspecialchars($row['KM']) . " | " . htmlspecialchars($row['Reference']) . " |
"; //$row['index'] the index here is a field name
}
echo "
"; //Close the table in HTML
#mysql_close(); //Make sure to close out the database connection