Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/08/2002, 17:24
Cluster
O_O
 
Fecha de Ingreso: enero-2002
Ubicación: Santiago - Chile
Mensajes: 34.417
Antigüedad: 22 años, 4 meses
Puntos: 129
Re: Mostrar solo Los ultimos 30 En mySQL

Eso lo haces con la funcion LIMIT de Mysql en tu query (consultas) ...

$query = "SELECT * FROM news ORDER BY id DESC LIMIT 30 ";

mas info:
<a href='ir.asp?http://www.mysql.com' target='_blank'>www.mysql.com...</a>

Un saludo,