KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My initial approach was: $current = time(); // save this to column CURRENT_TIME with column type VARCHAR //retrieve it like this $retrieved = mysql_query(....) //assume query for getting the stored time value $time = strtotime($retrieved); I have come across the following approaches: use gmstrftime to handle gmt use INT instead of VARCHAR for the column use the mysql function CURTIME or CURDATE use the UNIX_TIMESTAMP mysql function none of which were using the DATETIME or TIMESTAMP mysql var type. Do you have a better approach for this one?
Tags (comma-separated)
Save Edits
Cancel