Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/09/2006, 12:00
Avatar de susaninhax
susaninhax
 
Fecha de Ingreso: noviembre-2004
Mensajes: 358
Antigüedad: 19 años, 5 meses
Puntos: 3
he hecho esta consulta, pero no tiene ni pies ni cabeza,

pretendo que coja el día de hoy y reste 7 dias atrás y cuente los clics que haya durante esas fechas, pero no se como hacerlo, alguien me hecha un cable? toy hecha un lio...

Código PHP:
$sql_sietedias="select clicks 
        from cuentaclicks
        where TO_DAYS(NOW())-TO_DAYS(7)"
;
        
$result_sietedias=mysql_query($sql_sietedias,$link)or die(mysql_error());
        
$row_sietedias=mysql_fetch_array($result_sietedias);
        
$numero=$row_sietedias[clicks];