Hello!
I'm making up a survey, but unfortunately I cannot get this statement to work...
$sql="INSERT INTO survey VALUES('$age','$region','$internet','$music','$download','$songs','$cd','$opinion','$students','')";
mysql_query($sql, $connection) or die ("<p>Error occurred while submitting survey.</p>");
When I run it, I get the Error message. I echoed out the variables, and they are being passed, but the data is not making it to the database. I have the following survey table
(age, region, internet, music, donwload, songs, cd, opinion, students, id)
Anybody have any good ideas? This is as simple as it gets, but I'm struggling 😕
Thanks!
Donald