Should this delete all records in my SQL table?
<?php
$con = mysql_connect("localhost","bikemap","pedalhard");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("test", $con);
mysql_query("DELETE * FROM gpsdata");
mysql_close($con);
?>
The
DELETEsyntax doesn’t allow a star betweenDELETEandFROM. Try this instead: