Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/01/2012, 15:42
Avatar de lobo_php
lobo_php
 
Fecha de Ingreso: noviembre-2007
Ubicación: Cali-Colombia
Mensajes: 1.869
Antigüedad: 16 años, 5 meses
Puntos: 75
Respuesta: como mostrar registros en diferentes div

Código PHP:
Ver original
  1. <?php $regis22 = mysql_query("SELECT * FROM comments WHERE ID_THEMES = '$_GET[ID]'",$conn)or die ("you have a query problem");
  2. $i = 0;
  3. while($regs=mysql_fetch_array($regis22)){
  4. ?>
  5. <div id="comments<?php if ($i%2 == 0) echo '2'; ?>">
  6. <?php echo $regs['COMMENT']; ?>
  7. </div>
  8. <?php $i++; } ?>
[/QUOTE]
__________________
Cabuntu.org - Difundiendo Software Libre en Cali, Colombia
Usuario Linux # 483175