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];