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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -