How do i use the two queries? I am using mysql_select_db() to send information into two tables. Please be as specific as possible.
$sql="INSERT INTO Client_Info (Gender, Sexual_Orientation, Race_Ethnicity, Gender_Presentation, Body_Type, Height, Weight, Felony_Conviction) VALUES
('$_POST[pleaseindicateyourgender]','$…
$sql="INSERT INTO Lifestyle (Employment, Occupation, Education_Achieved, Children, Pets, Drink, Smoke) VALUES ('$_POST[employed]','$_POST[occupation]'…
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… on line 21
How do I send the two queries successfully to their respective tables?