Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/10/2005, 12:45
SOFIA_ME_GUSTA
 
Fecha de Ingreso: octubre-2005
Mensajes: 365
Antigüedad: 18 años, 6 meses
Puntos: 0
Código PHP:
select idcampo1 from mi_tabla order by id DESC Limit 5 



Código PHP:
$host="localhost"
$user="root"
$password=""
mysql_connect($host,$user,$password); 
$resultado mysql_db_query("mi_base_de_datos","SELECT id, campo1 from mi_tabla order by id DESC Limit 5"); 
while(
$row mysql_fetch_array($resultado)) 
{
$variable1=$row["campo1"];
echo 
$variable1;


Espero te sirva, Saludos.