Datetime Stamps SQL
#1

Hey guys,

I am making a gamemode in SQL and i want to save + read the SQL datetime stamps. I only have no idea how to do this because when i do mysql_get_field on the datetime stamp i get nothing in return. Does anyone know a solution for this to do this fast? The solution also needs to work with PHP.
Reply
#2

Use unix timestamps. These are just integers and can be saved as such. To get a readable date use MySQL's FROM_UNIXTIME function.

http://dev.mysql.com/doc/refman/5.0/..._from-unixtime
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)