Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/06/2006, 09:12
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
El problema es tu bucle, no he probado pero en C hay ciclos multiples trata algo asi:
Código PHP:
while ($c1=mysql_fetch_array($consu1) && $c2=mysql_fetch_array($consu2))
{
       if (
$c1[id] == $c2[id])
       {
              echo 
"<input type='checkbox' name='chk[]' checked value='$c1[id]'>$c1[descripcion]";
       }
       else
       {
             echo 
"<input type='checkbox' name='chk[]' value='$c1[id]'>$c1[descripcion]";
        }

ahora aqui la cosa es que ambos tengan la misma longitud, o si no se va a cortar antes el bucle que termine antes.