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