Error that doesn't exist!!!! <---------------------
Posted: Tue Jan 30, 2007 11:32 pm
Hey guys,
I get the following error:
Here's my original line:
Can you spot anything wrong with it? Because I can't :S
Thanks a lot!
Yuval
I get the following error:
Code: Select all
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''fname', 'lname', 'address', 'city', 'zipcode', 'amount') VALUE: INSERT INTO tbuserinfo ('fname', 'lname', 'address', 'city', 'zipcode', 'amount') VALUES (John, Doe, 1 Main St, San Jose, 95131, 1.00)Here's my original line:
Code: Select all
$query = "INSERT INTO tbuserinfo ('fname', 'lname', 'address', 'city', 'zipcode', 'amount') VALUES ($firstName, $lastName, $address1, $city, $zip, $amount)";Thanks a lot!
Yuval