Ver Mensaje Individual
  #7 (permalink)  
Antiguo 31/01/2011, 18:46
Avatar de xalupeao
xalupeao
 
Fecha de Ingreso: mayo-2008
Ubicación: Santiago, Chile
Mensajes: 749
Antigüedad: 16 años
Puntos: 12
Respuesta: Como mostrar ultimo registro de una tabla

agrega un campo fecha como datetime en tu base de datos. Y cuando guardes los registros tambien guarda la fecha y simplemente tendrias que hacer esto.

Código MySQL:
Ver original
  1. SELECT * FROM tabla ORDER BY fecha DESC LIMIT 1



creo que es simple y efectivo.
__________________
Hosting en Chile en Silverhost - La solución en Hosting en Chile.