Is it possible to make thos three inserts in database like this or is it better to td them together in just one query?
This wai doen't work, don't know why...
$sql = "INSERT INTO DatosInmueble ( Tipo, Localidad, Zona, Dirección, Habitaciones, Banyos, Superficie, Precio, Descripcion, Gas, Aire_Acond, Pta_Blindada, Ascensor, Garaje, Trastero, Calefaccion, Terraza, Armarios, Balcon, Piscina, cocinael, cocinagas, lavavajillas, cafetera, microhondas, horno, zonajuegos, basket, futbol, tenis, accesplaya, minusvalidos, tele, parabolica, video, equipomus, cajafuerte, tranquilo, entornoint, zonacomer, zonaocionoc, calific, tren, carretera, aeropuerto, iglesia, todoelagno, masde1, masde2, metrosplaya, metroscentro, alarma, toilet, Mascota, Familias, Pensionistas, Gentejoven, Indiferente)" .
"VALUES ('$Tipo', '$Localidad', '$Zona', '$Dirección', '$Habitaciones', '$Banyos', '$Superficie', '$Precio', '$Descripcion', '$Gas', '$Aire_Acond', '$Pta_Blindada', '$Ascensor', '$Garaje', '$Trastero', '$Calefaccion', '$Terraza', '$Armarios', '$Balcon', '$Piscina', '$cocinael', '$cocinagas', '$lavavajillas', '$cafetera', '$microhondas', '$horno', '$zonajuegos', '$basket', '$futbol', '$tenis', '$accesplaya', '$minusvalidos', '$tele', '$parabolica', '$video', '$equipomus', '$cajafuerte', '$tranquilo', '$entornoint', '$zonacomer', '$zonaocionoc', '$calific', '$tren', '$carretera', '$aeropuerto', '$iglesia', '$todoelagno', '$masde1', '$masde2', '$metrosplaya', '$metroscentro', '$alarma', '$toilet', '$Mascota', '$Familias', '$Pensionistas', '$Gentejoven', '$Indiferente')";
$result = mysql_query($sql) or die(mysql_error().'<p>'.$sql.'</p>');
$sql2 = "INSERT INTO Precios ( Ref, ene1, ene2, ene3, ene4, ene5, feb1, feb2, feb3, feb4, feb5, mar1, mar2, mar3, mar4, mar5, abr1, abr2, abr3, abr4, abr5, may1, may2, may3, may4, may5, jun1, jun2, jun3, jun4, jun5, jul1, jul2, jul3, jul4, jul5, ago1, ago2, ago3, ago4, ago5, sep1, sep2, sep3, sep4, sep5, oct1, oct2, oct3, oct4, oct5, nov1, nov2, nov3, nov4, nov5, dic1, dic2, dic3, dic4, dic5)".
"VALUES (Ref', '$ene1', '$ene2', '$ene3', '$ene4', '$ene5', '$feb1', '$feb2', '$feb3', '$feb4', '$feb5', '$mar1', '$mar2', '$mar3', '$mar4', '$mar5', '$abr1', '$abr2', '$abr3', '$abr4', '$abr5', '$may1', '$may2', '$may3', '$may4', '$may5', '$jun1', '$jun2', '$jun3', '$jun4', '$jun5', '$jul1', '$jul2', '$jul3', '$jul4', '$jul5', '$ago1', '$ago2', '$ago3', '$ago4', '$ago5', '$sep1', '$sep2', '$sep3', '$sep4', '$sep5', '$oct1', '$oct2', '$oct3', '$oct4', '$oct5', '$nov1', '$nov2', '$nov3', '$nov4', '$nov5', '$dic1', '$dic2', '$dic3', '$dic4', '$dic5)"
$result2 = mysql_query($sql2) or die(mysql_error().'<p>'.$sql2.'</p>');
$sql3 = "INSERT INTO Disponibilidad ( Ref, ene1d, ene2d, ene3d, ene4d, ene5d, feb1d, feb2d, feb3d, feb4d, feb5d, mar1d, mar2d, mar3d, mar4d, mar5d, abr1d, abr2d, abr3d, abr4d, abr5d, may1d, may2d, may3d, may4d, may5d, jun1d, jun2d, jun3d, jun4d, jun5d, jul1d, jul2d, jul3d, jul4d, jul5d, ago1d, ago2d, ago3d, ago4d, ago5d, sep1d, sep2d, sep3d, sep4d, sep5d, oct1d, oct2d, oct3d, oct4d, oct5d, nov1d, nov2d, nov3d, nov4d, nov5d, dic1d, dic2d, dic3d, dic4d, dic5)".
"VALUES (Ref', '$ene1', '$ene2', '$ene3', '$ene4', '$ene5', '$feb1', '$feb2', '$feb3', '$feb4', '$feb5', '$mar1', '$mar2', '$mar3', '$mar4', '$mar5', '$abr1', '$abr2', '$abr3', '$abr4', '$abr5', '$may1', '$may2', '$may3', '$may4', '$may5', '$jun1', '$jun2', '$jun3', '$jun4', '$jun5', '$jul1', '$jul2', '$jul3', '$jul4', '$jul5', '$ago1', '$ago2', '$ago3', '$ago4', '$ago5', '$sep1', '$sep2', '$sep3', '$sep4', '$sep5', '$oct1', '$oct2', '$oct3', '$oct4', '$oct5', '$nov1', '$nov2', '$nov3', '$nov4', '$nov5', '$dic1', '$dic2', '$dic3', '$dic4', '$dic5)"
$result3 = mysql_query($sql3) or die(mysql_error().'<p>'.$sql3.'</p>');
echo "¡Gracias! Hemos recibido sus datos.\n";