![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/09/2008, 06:47
|
![Avatar de eddwinpaz](http://static.forosdelweb.com/customavatars/avatar200935_18.gif) | | | Fecha de Ingreso: noviembre-2007 Ubicación: Merida , Venezuela
Mensajes: 1.066
Antigüedad: 17 años, 3 meses Puntos: 25 | |
Respuesta: Mostrar 5 noticias ordenadas $sql = 'SELECT id,titulo,noticia
FROM noticias
LIMIT 0,5
ORDER BY id
DESC';
SELECCIONA id,titulo,noticia
De noticias
LIMITE DE 0 HASTA 5
ORDENADO POR id
EN ORDEN DECENDIENTE
__________________ O nos hacemos miserables o nos hacemos fuertes , la cantidad de trabajo es la misma. |