Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/03/2004, 13:49
Avatar de Salome
Salome
 
Fecha de Ingreso: noviembre-2002
Ubicación: Colombia
Mensajes: 1.032
Antigüedad: 21 años, 5 meses
Puntos: 1
mmm no me quiere funcionar no me ingresa

$result =mysql_query("select * from tabla order by identificador",$conectar);
while ($row = mysql_fetch_array($result))
{
?>
<input type="checkbox" name="cd[]" value = "<?echo $row["cd"];?>">
<?
}
?>

y apenas elijo los checkbox, lo envio a otro script y esto esta en el insert...paso el array cd[] "supuestamente" y la variable $otra_vble.

for($i=0;$i<count($cd);$i++)
{
$vrble = $cd[$i];
mysql_query("INSERT INTO tabla2 (otra_vble, vrble)
values ( '$otra_vble', '$vble')",$conectar);
}