Welcome Guest, Not a member yet? Register   Sign In
adding date to datebase
#3

[eluser]InsiteFX[/eluser]
If using a MySQL DateTime field then use this.
Code:
$now = date("Y-m-d H:i:s");
// your creation_date
'creation_date' => $now

// MySQL Date
// for the way you have it use this
$now = date("Y-m-d");
// your creation_date
'creation_date' => $now


Messages In This Thread
adding date to datebase - by El Forum - 05-13-2012, 11:13 AM
adding date to datebase - by El Forum - 05-13-2012, 11:36 AM
adding date to datebase - by El Forum - 05-13-2012, 01:34 PM
adding date to datebase - by El Forum - 05-14-2012, 03:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB