My helpful friends,
I have diligently read the entire Newbie forum without finding a solution to this brain-dead-simple problem. I am trying to enter information into a MySQL database that I have created. Five fields, the first being an ID field, so no entry from my php script.
I have been following an online tutorial, "PHP/MySQL Tutorial" and simply cannot get this problem resolved. The error I continuously receive after using my browser to call the php page is "Parse error: syntax error, unexpected ',' in [the file name] on line 16" Help me fix this and I'll stop bothering you for a bit!
The "mysql_connect" was built by the server software of my ISP, so I'm taking that as OK. For security, I've replaced my database name and passwords. Line 16 is the $query line.
The PHP code I'm using:
<?php
$dbh=mysql_connect ("localhost", "XXXXXX",
"XXXXXXXX") or die('Cannot connect to the database because: ' . mysql_error());
mysql_select_db ("XXXXXXXX");
$query = "INSERT INTO RideShareInfo VALUES (",'John Smith','04-05-2010','04-06-2010','9073455633')";
?>
I appreciate your help.