I have a field in one of my tables called "publicationDate" and its data type is date. However, when I make a query that should show today's date, I am having a problem on how to format it. It always shows 0000-00-00.
This is my variable:
$today = date("F j, Y, g:i a"); This is my query:
$query = "INSERT INTO articles (summary, publicationDate) VALUES ('{$content}', '{$today}')"; What am I doing wrong?