Insert Date inside mysql column
#2

Mysql has a function that is called NOW and prints the current time the query gets implemented.

EDIT: for example at my bug report command here, i am using this function as you can see. You can get an idea of how to save date.

PHP код:
mysql_format(mysqlquerysizeof(query),"INSERT INTO `bugs` (`BugReporter`,`BugInfo`,`Date`) VALUES ('%s','%s', NOW())",BugReporter,BugInfo); 
Reply


Messages In This Thread
Insert Date inside mysql column - by CoachCarter - 07.10.2016, 05:10
Re: Insert Date inside mysql column - by vassilis - 07.10.2016, 05:12
Re: Insert Date inside mysql column - by CoachCarter - 07.10.2016, 05:15
Re: Insert Date inside mysql column - by vassilis - 07.10.2016, 05:22
Re: Insert Date inside mysql column - by CoachCarter - 07.10.2016, 05:33
Re: Insert Date inside mysql column - by Vince - 07.10.2016, 05:33
Re: Insert Date inside mysql column - by CoachCarter - 07.10.2016, 05:52
Re: Insert Date inside mysql column - by CoachCarter - 07.10.2016, 06:43

Forum Jump:


Users browsing this thread: 3 Guest(s)