![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/08/2005, 14:02
|
| | Fecha de Ingreso: abril-2005 Ubicación: colombia
Mensajes: 242
Antigüedad: 19 años, 9 meses Puntos: 0 | |
Estoy haciendo esto.
<tr>
<td>Hobbie</td>
<? $sql = mysql_query ("select * from hobbies ");
while ($fila = mysql_fetch_array($sql)){
$idHobbie = $fila["id_hobbies"]; ?>
<td><input name="<?php echo $idHobbie ?> " type="checkbox" value="<?php echo $idHobbie ?> "><?php echo $fila['nombre'] ?>
<? } ?></td>
</tr>
mysql_query(" insert into hobbieCliente (idCliente, idHobbie) values ( '$idCliente','$idHobbie') " ) ;
siempre me esta insertando un "2" que es el identificador del ultimo hobbie que selecciona . Como hago para que me inserte tantos hobbies en la tabla como tantos el seleccione.
__________________ :aplauso: Ivomat |