calculate no of days between mysql timestamp and php current date -


this question has answer here:

i getting php date date("y-m-d") 2014-03-14 ,

mysql timestamp 2014-03-02 03:2:23

i want 12 days.

select datediff('2014-03-14',date(mysql_timestamp)) 

Comments

Popular posts from this blog

c# - ItextSharp font color issue in ver 5.5.4+ -

jquery - Multiple issues with pushstate: history, loading, calling functions -

php - Get process resource by PID -