How do i use the two queries? I am using mysql_select_db() to send information into two tables. when I try to use Please be as specific as possible. When I try to use
$sql="INSERT INTO Client_Info (Gender, Sexual_Orientation, Race_Ethnicity, Gender_Presentation, Body_Type, Height, Weight, Felony_Conviction) VALUES
('$_POST[pleaseindicateyourgender]','$_POST[indicateyourorientation]','$_POST[ethnicity]','$_POST[yourpresentation]','$_POST[bodytype]','$_POST[height]','$_POST[weight]','$_POST[felony]')";
$sql="INSERT INTO Lifestyle (Employment, Occupation, Education_Achieved, Children, Pets, Drink, Smoke) VALUES ('$_POST[employed]','$_POST[occupation]','$_POST[educationlevel]','$_POST[children]','$_POST[pets]','$_POST[drinking]','$_POST[smoking]')
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo
header("Location: http://my.website.com");
exit();
mysql_close($con)
?>
I keep receiving an error message Parse error: syntax error, unexpected T_STRING in /home/a992/public_html/clientinfo1insert.php on line 21
How do I send the two queries successfully to their respective tables?