Jump to content

[SOLVED] insert


sniped22

Recommended Posts

Why doesn't this work?

 

$query = "insert into user ($email, $refid, $refby, $ppemail, $pass,

 

$fname, $lname, $address, $city, $state, $zip, $country, $phone,

 

$bdaymonth, $bdayday, $bdayyear, $prize)values (email, myrefid,

 

refby, ppemail, pass, fname, lname, address, city,

 

state, zip, country, phone, bdaymonth, bdayday,

 

bdayyear, prize)";

 

the mysql error is:

 

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 '@yahoo.com, *****, ****, *****, r*****, *****,  ****, *****, ' at line 1

Link to comment
https://forums.phpfreaks.com/topic/67291-solved-insert/
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.