Jump to content

[SOLVED] Help with PHP and MySQL


Qbart

Recommended Posts

Hello:

I have this code:

[code]
$sql="INSERT INTO $table_name (Email, First Name, Last Name)
VALUES
('$_POST[Email]','$_POST[First_Name]','$_POST[Last_Name]')";
[/code]
and I keep getting this error in the browser window:

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 'Name, Last Name) VALUES ('[email protected]','George','Eber


I'm running this on a godaddy linux account, it says under MySQL version Client API version  3.23.49 

Thanks for any and all help.
Link to comment
https://forums.phpfreaks.com/topic/36106-solved-help-with-php-and-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.