Ver Mensaje Individual
  #10 (permalink)  
Antiguo 08/12/2012, 14:06
helion
 
Fecha de Ingreso: mayo-2010
Mensajes: 215
Antigüedad: 14 años
Puntos: 4
Exclamación Respuesta: problemas con if o while

Cita:
Iniciado por David Ver Mensaje
Me refería a algo como:
Código PHP:
Ver original
  1. $users = array(1 => array(), 2 => array());
  2. while($userid = mysql_fetch_array($qmnews2)){
  3.     $users[$userid['x']][$userid['y']] = $userid['user'];
  4. }
Código PHP:
Ver original
  1. <table width="87" border="1">
  2.   <tr>
  3.     <td width="28"><?php echo $users[1][1]; ?></td>
  4.     <td width="43"><?php echo $users[1][2]; ?></td>
  5.   </tr>
  6.   <tr>
  7.     <td><?php echo $users[2][1]; ?></td>
  8.     <td><?php echo $users[2][2]; ?></td>
  9.   </tr>
  10. </table>
gracias David !! hice todo el cambio a mis codigos me fue algo dificil pero me funciono :)! gracias.