note 70444 added to function.pg-insert

From: Date: Tue, 17 Oct 2006 03:06:59 +0000
Subject: note 70444 added to function.pg-insert
Groups: php.notes 
Request: Send a blank email to php-notes+get-118596@lists.php.net to get a copy of this message
Today at work I isolated a problem I was having with this function to how I was formatting the date. I was assigning the date in my code as follows: $today = date( "Ymd" ); // ISO 8601 This format is acceptable to PostgreSQL, as verified by their documentation and buy tests using psql. However, to make it work in my code, I had to make the following change: $today = date( "Y-m-d" ); // also ISO 8601 format ---- Server IP: 216.194.113.175 Probable Submitter: 4.254.229.232 ---- Manual Page -- http://www.php.net/manual/en/function.pg-insert.php Edit -- https://master.php.net/note/edit/70444 Del: integrated -- https://master.php.net/note/delete/70444/integrated Del: useless -- https://master.php.net/note/delete/70444/useless Del: bad code -- https://master.php.net/note/delete/70444/bad+code Del: spam -- https://master.php.net/note/delete/70444/spam Del: non-english -- https://master.php.net/note/delete/70444/non-english Del: in docs -- https://master.php.net/note/delete/70444/in+docs Del: other reasons-- https://master.php.net/note/delete/70444 Reject -- https://master.php.net/note/reject/70444 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118596) next »