¡ Notice: Array to string conversion in....!
Este es el codigo, si no pongo el segundo checkbox de estancia, las categorias si que me las guarda bien en la bd:
Código PHP:
Ver original
} $estancia = $_POST['estancia']; } $insertSQL = sprintf("INSERT INTO casas (categoria, nombre, estancia, foto) VALUES ($categoria, $estancia, %s, %s)", GetSQLValueString($_POST['nombre'], "text"), GetSQLValueString($_POST['foto'], "text"));
Código HTML:
Ver original
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1"> <table align="center"> <tr valign="baseline"> <tr> Grande</td> </tr> <tr> Mediana</td> </tr> <tr> Pequeña</td> </tr> <tr> Enorme</td> </tr> <tr> Si</td> No</td> </tr> </table> </td> </table> <input type="hidden" name="MM_insert" value="form1" /> </form>
he puesto solo el coodigo de esos campos
saludos!