Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/12/2007, 14:55
Avatar de _eNGeLs_
_eNGeLs_
 
Fecha de Ingreso: noviembre-2007
Ubicación: CDE, Paraguay
Mensajes: 278
Antigüedad: 17 años, 3 meses
Puntos: 4
Pregunta actualizar registros mysql

tengo un problema con el UPDATE..
este es el codigoq uso
Código PHP:
$result=mysql_query("select * from anuncios ORDER BY id DESC");
$row=mysql_fetch_array($result);
$fecha_actual date("Y" ."-""m" ."-""d");

while (
$row=mysql_fetch_array($result))
{
if(
$fecha_actual == $row[fecha_expiracion]){
$la_id $row[id];
$actualizacion "UPDATE anuncios SET accion = 'eliminar' WHERE id = '$la_id'";
mysql_query($actualizacion);
}

el problema esta en q modifica todos los registros, menos el ultimo.., el de la ID mas alta..
alguien sabe porque??