Code:
if ($_GET["id"] == 8)
{
if (isset($_POST[firstname]))
{
$db = mysql_connect("mysql1.000webhost.com", "a8426899_gorbo", "********");
mysql_select_db("a8426899_pandora",$db)or die('Error, Cannot select or database');
$sql = "INSERT INTO signups (firstname, lastname, city, state, country, email, sensitivity, fibromyalgia, myalgic, postviral, postinfectious, yuppie, chronicpain, migraine, arthritis, allergies, rhinitis, asthma, food, celiac, bowel, depression, anxiety, thyroid, comment) VALUES ('$firstname', '$lastname', '$city', '$state', '$country', '$email', '$sensitivity', '$fibromyalgia', '$myalgic', '$postviral', '$potinfectious', '$yuppie', '$chronicpain', '$migraine', '$arthritis', '$allergies', '$rhinitis', '$asthma', '$food', '$celiac', '$bowel', '$depression', '$anxiety', '$thyroid', '$comment')";
$result = mysql_query($sql) or die('Error, insert query failed');
echo "Thank you! Information entered.\n";
}
else
{...
Output = Error, insert query failed
I cant figure out why this is... I sent the data via a form located in the ELSE statement, can anyone help me with this, all form Ids are the same as the variable names.