Jump to content

Variable with current date ?


jobs1109

Recommended Posts

Hi Everyone,

 

I am trying to create a variable with the current date and then insert it into a mysql database. Here is what I have so far.

 

$DatePostedOn= date("F j, Y, g:i a");

 

 

when I insert the variable into the table  it shows " 0000-00-00 00:00:00    "

 

 

What am I doing wrong ? Please help

Link to comment
https://forums.phpfreaks.com/topic/245742-variable-with-current-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.