Im using timestamps with my sql database.
I currently am making a voting system, can anyone make a if statement where if $stamp is older than two days it will run some code? i have been trying for hours and can’t seem to get it to work. Thanks!
Im using timestamps with my sql database. I currently am making a voting system,
Share
You don’t need PHP to do this for you, let the database do the work as it’s usually more efficient:
I believe this also work with
UNIX_TIMESTAMP,TIMESTAMP,DATETIMEandDATEcolumns as MySQL will perform the conversion automatically and apply it to the result set.