Re: DATETIME MySQL - using only month and date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> $month_start : starting month
> $month_end : ending month
> 
> $day_start : starting day
> $day_end : ending day

You could add something like this in the WHERE clause:

((MONTH(closing) >= $month_start AND DAY(closing) >= $day_start)
AND
(MONTH(closing) <= $month_end AND DAY(closing) <= $day_end))

-- 
Atte, Andrés G. Montañez
Técnico en Redes y Telecomunicaciones
Montevideo - Uruguay

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux