Gracias amigo pero me salio el mismo error
tengo esto
Código PHP:
<?php require_once('Connections/connection.php');
$option = $_POST['select'];
$s1= $_POST['select1'];
$s2 = $_POST['select2'];
$s3 = $_POST['select3'];
$c1 = $_POST['caja1'];
$c2= $_POST['caja2'];
$c3= $_POST['caja3'];
switch($option){
case ('select1'): $insertSQL = ("INSERT INTO probando(eleccion,texto) VALUES ($s1,$c1)");
break;
case ('select2'): $insertSQL2 = ( "INSERT INTO probando(eleccion,texto) VALUES ($s2,$c2)");
break;
case ('select3'): $insertSQL3 = ( "INSERT INTO probando(eleccion,texto) VALUES ($s3,$c3)");
break;
default:
mysql_select_db($database_connection, $connection);
$Result1 = mysql_query($insertSQL, $connection) or die(mysql_error());
$Result2 = mysql_query($insertSQL2, $connection) or die(mysql_error());
$Result3 = mysql_query($insertSQL3, $connection) or die(mysql_error());
break;
}
?>