dniwebdesign
10-16-2004, 09:14 AM
Why would this give me the error below. I think I have everything right...
$sql=mysql_query("INSERT INTO scripts_registered (serial,to,email,website,script,releasetype) VALUES ('".$register["serial"]."','".$register["to"]."','".$register["email"]."','".$register["website"]."','".$register["script"]."','".$register["releasetype"]."')") or $e=mysql_error();
Here's the error:
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 'to,email,website,script,releasetype) VALUES ('1-BFREE-758','Daw
$sql=mysql_query("INSERT INTO scripts_registered (serial,to,email,website,script,releasetype) VALUES ('".$register["serial"]."','".$register["to"]."','".$register["email"]."','".$register["website"]."','".$register["script"]."','".$register["releasetype"]."')") or $e=mysql_error();
Here's the error:
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 'to,email,website,script,releasetype) VALUES ('1-BFREE-758','Daw