date on php gives error when entering in database with varchar column code example Example: php mysql datetime date("Y-m-d H:i:s")