need help with MySQl Statement for insert
Posted: Tue Dec 13, 2005 4:28 pm
Quick help on this any one
no matter what i try i error at the @ symbol
I wrote with set to make sure all values match to columns i already tried with VALUES() too
Email comes from a form and i use extract($_POST)
no matter what i do even in as a variable like
$email = addslashes($email); It errors out
$email = addslashes($_REQUEST['email']); It errors out too
I even tried str_replace and it just errors at \@
Any one got any ideas?
no matter what i try i error at the @ symbol
I wrote with set to make sure all values match to columns i already tried with VALUES() too
Code: Select all
$sql = "INSERT INTO ".$table." SET name=$name, name2=$name2, email=".mysql_real_escape_string($email).", zip=$zip, create_date=$date";no matter what i do even in as a variable like
$email = addslashes($email); It errors out
$email = addslashes($_REQUEST['email']); It errors out too
I even tried str_replace and it just errors at \@
Any one got any ideas?