
16/04/2010, 15:14
|
| | Fecha de Ingreso: abril-2010 Ubicación: Colombia
Mensajes: 229
Antigüedad: 14 años, 11 meses Puntos: 2 | |
Respuesta: Listar articulos relacionados por tema desde BBDD MySql Intenta este codigo
<?php
$datos = "";
while ($row = mysql_fetch_row($sql)) {
if($datos != $row[0]){
$datos = $row[0];
$growthList1 .= $row[0];
}
$growthList .= $growthList1.' | '.$row[1];
}
echo "<ol style='text-align:left;'>".$growthList."</ol>";
?>
La idea es controlar que en el arreglo $row[0] no se repita y si es asi no lo pinte.
Espero que te ayude........ |