Bebopgeo Posted January 2, 2010 Share Posted January 2, 2010 I have a hidden field in my insert form that will insert the date into my mysql database. I'm using a "varchar" field in the database if that is the right type to use, and I have this pice of code in the value of the hidden field <?php echo date("m/d/Y H:i:s") ?> I'm trying to insert the current date and time of my computer into the database I get the right date but the time is off by five hours or so. So is the code right or do I need to change the code or use a DATE/TIME field in the database. Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.