adding date to datebase |
[eluser]Mohammed Zayan[/eluser]
I use this code in my model Code: function addBook($photo_link){ but creation_date field like this 0000-00-00 Is the way I use wrong?
[eluser]Mohammed Zayan[/eluser]
my table structure in this photo http://im26.gulfup.com/2012-05-13/1336919768201.jpg I think it will help.
[eluser]InsiteFX[/eluser]
If using a MySQL DateTime field then use this. Code: $now = date("Y-m-d H:i:s");
|
Welcome Guest, Not a member yet? Register Sign In |