tengo esto hecho para un mes y funciona
Código PHP:
$tiempo1 = time();
if ( date("m", $tiempo1) == '01' )
{
// Tomamos los datos de la fecha...
$fdevolucion1= date("Y-m-d", $tiempo1);
} ;
$sSQL="SELECT importe FROM alquileres WHERE fdevolucion='".$fdevolucion1."'";
Código PHP:
$tiempo1 = time();
if ( date("d", $tiempo1) == '1-7' )
{
// Tomamos los datos de la fecha...
$fdevolucion1= date("Y-m-d", $tiempo1);
} ;
$sSQL="SELECT importe FROM alquileres WHERE fdevolucion='".$fdevolucion1."'";
alguien me puede echar una mano?