What's wrong with this PHP/MYSQL Insert Into?

Joe Burnett

New member
I get this error...

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 'VALUES(J,B,[email protected],JoeB,TYBYTE,Contact mobile,USA,con' at line 2

This is the code...

$Create_User = mysql_query("INSERT INTO Users
(FirstName, LastName, Email, Username, Password, Company, Country, Website, Phone#)
VALUES($FName,$LName,$Email,$Username,
$Password1,$Company,$Country,
$Website,$Phone)");

if(!$Create_User)
{
echo mysql_error();
die("MySQL Error #2! Try Again Later!");
}

What's wrong?
 
Back
Top