liquidtrax
Programmer
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 'long, talk, date, type, own, e, style, P) VALUES ( 'o','o','o'
The code extract is below
//insert into table
$query = "INSERT INTO data (firstname, lastname, street, town, city, postcode, country, email, phone, nickname, salary, drive, vehicle, travel, long, talk, date, type, own, e, style, P)
VALUES( '$first_name','$last_name','$street', '$town', '$city', '$postcode', '$country', '$email', '$phone', '$nickname', '$salary', '$drive', '$vehicle', '$travel', '$long', '$talk', '$date', '$type', '$own', '$e', '$style', 'U');";
$query = mysql_query($query) or die(mysql_error());
mysql_close($link);
Can anyone spot a bug? would be real helpful if someone could tell me where ive gone wrong
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 'long, talk, date, type, own, e, style, P) VALUES ( 'o','o','o'
The code extract is below
//insert into table
$query = "INSERT INTO data (firstname, lastname, street, town, city, postcode, country, email, phone, nickname, salary, drive, vehicle, travel, long, talk, date, type, own, e, style, P)
VALUES( '$first_name','$last_name','$street', '$town', '$city', '$postcode', '$country', '$email', '$phone', '$nickname', '$salary', '$drive', '$vehicle', '$travel', '$long', '$talk', '$date', '$type', '$own', '$e', '$style', 'U');";
$query = mysql_query($query) or die(mysql_error());
mysql_close($link);
Can anyone spot a bug? would be real helpful if someone could tell me where ive gone wrong