Tema
:
Como mostrar ultimo registro de una tabla
Ver Mensaje Individual
#
7
(
permalink
)
31/01/2011, 18:46
xalupeao
Fecha de Ingreso: mayo-2008
Ubicación: Santiago, Chile
Mensajes: 749
Antigüedad: 16 años, 10 meses
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
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.
xalupeao
Ver Perfil
¡Visita mi Sitio!
Buscar todos los Mensajes de xalupeao