I need MySql Help?
heres the issue
Could Not Execute SQL Query 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 'key, fname, lname, password, email) values('b0c72ca2804fcfe3ac43dd7bd48e5' at line 1
code:
$sql = "insert into temp_mems (key, fname, lname, password, email)
values('$code', '$fname', '$lname', '$password', '$email' )";
$rs=mysql_query($sql, $con)or die ('Could Not Execute SQL Query ERROR:' . mysql_error() );
any help?
$code=md5(uniqid(rand(), true));
is the code var and the table is fine its a problem with inserting the code its set to varchar 65 length not null and rest are defaults
|