php - How many days since sign up in mysql with new column -


i'd add column database displays amount of time in days since user signed up.

currently have field displays date signed in unix.

is possible new column increase fields 1 each day?

you can basic sql information dynamically. datediff() need:

select     datediff(current_date, from_unixtime(date_signed_up)) days_since_signup     tablename 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -