Php date() Date and time is stuck [closed]

mysql’s standard/native date format is yyyy-mm-dd hh:mm:ss. If you feed in anything else, mysql will interpret it as best it can, but will fail (as it is in your case). Don’t try to use another format. And what’s with all the explode stuff? If you want to manipulate the date variable, then don’t use all those round-trips from time->string->whatever->string->whatever->etc…

Leave a Comment