Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DC0C0475CB4 for ; Tue, 1 Oct 2002 14:00:08 -0400 (EDT) Received: from mail.astrofoto.org (dsl092-102-177.nyc2.dsl.speakeasy.net [66.92.102.177]) by postgresql.org (Postfix) with ESMTP id BA822476866 for ; Tue, 1 Oct 2002 14:00:07 -0400 (EDT) Received: from kuiper.rlent.pnet (IDENT:root@kuiper.rlent.pnet [192.168.3.50]) by mail.astrofoto.org (8.12.3/8.12.3) with ESMTP id g91I07UZ008615 for ; Tue, 1 Oct 2002 14:00:07 -0400 Received: (from roland@localhost) by kuiper.rlent.pnet (8.11.6/8.11.6) id g91I07P03840; Tue, 1 Oct 2002 14:00:07 -0400 X-Authentication-Warning: kuiper.rlent.pnet: roland set sender to roland@astrofoto.org using -f To: Postgres-PHP Subject: Re: Inserting Null Value or String Value References: From: Roland Roberts Date: 01 Oct 2002 14:00:07 -0400 In-Reply-To: Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/3 X-Sequence-Number: 1518 >>>>> "Keary" == Keary Suska writes: Keary> If I surround the date with single quotes it should be Keary> fine, but I can't do that when I want to insert a null Keary> value. I know that I can do an "IF ELSE Keary> " in the SQL string, by I am entering Keary> many values and this would really get messy. I was hoping Keary> that there was a better solution. Thanks for any help. Why is this too difficult? You *are* doing some sort of input validation before you send the data to posgres aren't you? roland -- PGP Key ID: 66 BC 3B CD Roland B. Roberts, PhD RL Enterprises roland@rlenter.com 76-15 113th Street, Apt 3B roland@astrofoto.org Forest Hills, NY 11375