Ver Mensaje Individual
Antiguo 01-abr-2008, 10:47   #4 (permalink)
GatorV
$this->role('moderador');
GatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradable
 
Avatar de GatorV
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ags/
Mensajes: 17.377
Re: Analizis de Clase

Puedes buscar en Google por el patrón Registry, es básicamente una clase que se encarga de llevar un registro.

En tu Delete tienes:
Código:
DELETE FROM usuariosenlinea WHERE tiempo < $tiempo_actual - $tiempo_limite
Eso lo puedes calcular directo desde PHP:
Código PHP:
$aborrar $tiempo_actual $tiempo_limite;
$mysql->query("DELETE FROM usuariosenlinea WHERE tiempo < $aborrar"); 
Saludos.
__________________
Blog Web
GatorV está desconectado   Responder Citando