X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 6DF1530EF9B for ; Tue, 17 Jun 2003 03:31:42 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 12277-09 for ; Tue, 17 Jun 2003 00:31:31 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by svr1.postgresql.org (Postfix) with ESMTP id 6EAEC30EF75 for ; Tue, 17 Jun 2003 00:31:31 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3126938; Mon, 16 Jun 2003 20:31:39 -0700 Content-Type: text/plain; charset="big5" From: Josh Berkus Organization: Aglio Database Solutions To: "ko" , Subject: Re: select date range? Date: Mon, 16 Jun 2003 20:28:46 -0700 User-Agent: KMail/1.4.3 References: <02c101c3347c$1279d830$c9641cac@myko> In-Reply-To: <02c101c3347c$1279d830$c9641cac@myko> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200306162028.46202.josh@agliodbs.com> X-Archive-Number: 200306/168 X-Sequence-Number: 13926 Ko, > (1)mydate attribute is timestamp > (2)$_POST[start_date] is something like '2003/05/12' You probably need to re-format the POST date before passing it to the back-end. For example, my compilation of PostgreSQL would not necessarily correctly recognize that date format. Try re-formatting the date to '2003-05-12' -- Josh Berkus Aglio Database Solutions San Francisco