Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/07/2008, 21:20
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Bucle FOR y datos en un array desde una DB

Cita:
Iniciado por hgp147 Ver Mensaje
Código PHP:
<?php
require_once('db.php');

$fecha date("Y-m-d H:i:s"strtotime("-1 day"));

mysql_query("DELETE FROM usuarios WHERE Activo=0 AND fecha<='$fecha'");

?>
Muchisimas gracias hgp147.
Funciono perfectamente.

Última edición por Ronruby; 21/09/2008 a las 14:41