- 
 
 
 

  ³  

   
Joe
Text
SELECT
unix_timestamp(now()),
from_unixtime(unix_timestamp(subdate(curdate(), weekday(curdate())))) as weekbegin,
from_unixtime(unix_timestamp(adddate(curdate(), 7-weekday(curdate())))) as weekend,
from_unixtime(unix_timestamp(subdate(curdate(), dayofmonth(curdate())-1))) as monthbegin,
from_unixtime(unix_timestamp(subdate(curdate(), dayofyear(curdate())-1))) as yearbegin
programmer
PHP MySQL / , , - ? ...


  ':
  :
-Ѳ  Ѳ- . ³
-Ѳ Ѳ- . ³

APServer | SiMan CMS | ˳ | | | | ˳ | PHP Builder | Download | | Smarty | ϳ PHP | / | |