![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/01/2012, 15:42
|
![Avatar de lobo_php](http://static.forosdelweb.com/customavatars/avatar202357_1.gif) | | | Fecha de Ingreso: noviembre-2007 Ubicación: Cali-Colombia
Mensajes: 1.869
Antigüedad: 17 años, 2 meses Puntos: 75 | |
Respuesta: como mostrar registros en diferentes div
Código PHP:
Ver original<?php $regis22 = mysql_query("SELECT * FROM comments WHERE ID_THEMES = '$_GET[ID]'",$conn)or die ("you have a query problem"); $i = 0; ?> <div id="comments<?php if ($i%2 == 0) echo '2'; ?>"> <?php echo $regs['COMMENT']; ?> </div> <?php $i++; } ?>
[/QUOTE]
__________________ Cabuntu.org - Difundiendo Software Libre en Cali, Colombia
Usuario Linux # 483175 |