Forum Moderators: coopster
<?php
mysql_connect("localhost","root","") or die (mysql_error());
echo "Connected to MySQL<br><hr>";
mysql_select_db("bikeorder") or die(mysql_error());
echo "Connected to Datebase<br><hr>";
$query = "SELECT * FROM bikeorder:";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo $row['field_1'] , $row['field_2'];
echo "<br>";
}
?>
When I view it this is what I get
Connected to MySQL
Connected to Datebase
You have an error in your SQL syntax near ':' at line 1
Any Suggestions?