Records

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