SuperMode55
01-17-2012, 12:23 AM
Hello, I'm making a dropdown menu with about 5 choices from these choices I have 5 tables so if the user chooses "choice1" I want to insert data into table "choice1" so I made
a variable out of each option like
$table_choice_1=$_POST['choice1'];
$mysql="INSERT INTO $table_choice_1 (--etc etc)
I get this error every time:
Connection Succesful!You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
I know the syntax is ok since i used it before but without trying to make a table variable. I'd appreaciate the help thank you.
a variable out of each option like
$table_choice_1=$_POST['choice1'];
$mysql="INSERT INTO $table_choice_1 (--etc etc)
I get this error every time:
Connection Succesful!You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
I know the syntax is ok since i used it before but without trying to make a table variable. I'd appreaciate the help thank you.