Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/08/2007, 14:52
Avatar de Seppo
Seppo
 
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 6 meses
Puntos: 17
Re: base de datos

Algo así...

Código PHP:
$re mysql_query('
SELECT usuario, fechahora, mensaje
FROM mi_table
ORDER BY fechahora DESC
LIMIT 0,15
'
); // 0,15 y no 1,15, sino se pierde el último registro =P
 
while($row mysql_fetch_Array($re))
    { 
        echo 
$row['usuario'];
        echo 
" ";
        echo 
$row['fechahora'];
        echo 
" Dice : ";
        echo 
$row['mensaje'];

               }