Forum Moderators: coopster
$sqluser = "INSERT INTO sg_registration SET
fname='$_SESSION['fname']',
lname='$_SESSION['lname']',
email= '$_SESSION['email']',
birth='$_SESSION['month']',
sex= '$_SESSION['gender']',
phone='$_SESSION['phone']',
street='$_SESSION['street']',
city= '$_SESSION['city']',
state= '$_SESSION['state']',
zip= '$_SESSION['zip']',
ename= '$_SESSION['ename']',
ephone='$_SESSION['ephone']',
pname='$_SESSION['pname']',
pphone= '$_SESSION['pphone']',
iname= '$_SESSION['iname']',
iphone= '$_SESSION['iphone']',
medications= '$_SESSION['med']',
allergies='$_SESSION['allergies']',
shirtsize='$_SESSION['shirtsize']',";
$sqluser = "INSERT INTO sg_registration SET fname='" . $_SESSION['fname'] . "', lname='" . $_SESSION['lname'] . "'";
etc....
then I don't have to use braces, I alsi then use single quotes instead of double as nothing in the strings needs to be parsed.
That error looks like the session values aren'y ending up in you query string
echo your full query string to the screen to see if it is being built properly before you use mysql_query