pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Wilson <dan@acucore.com>
To: Hillensbeck, Preston <PHillensbeck@sfbcic.com>
Cc: Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
Cc: pgsql-php@postgresql.org
Subject: Re:
Date: Wed, 17 Apr 2002 15:52:34 -0600
Message-ID: <1019080354.3cbdeea2e006c@webmail.acucore.com> (raw)

Have you tried echoing the $sql after it is created?  it's possible that you 
have nothing in your php variables.  In that case, and empty string would 
cause and error.  Otherwise, postgres doesn't care if you have quotes around 
an numeric type on insert.

-Dan

Quoting "Hillensbeck, Preston" <PHillensbeck@sfbcic.com>:

> Hmmm well it still tells me the same thing when I take the quotes off.  Is
> there some type of casting that I might have to do?  I have read about the
> cast command, but don't understand how to use it.
> 
> Hi Preston
> 
> @$sql="INSERT INTO checking VALUES('$check_date', '$check_num',
> '$check_pay', '$check_amount', '$check_trans_type');";
> 
> Try your INSERT without '' around '$check_amount'. The quotes are only
> used for character-types but not for numeric data.
> 
> Regards
> Conni
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 






Message-ID: <1019080354.3cbdeea2e006c@webmail.acucore.com>
Permalink:  ../1019080354.3cbdeea2e006c@webmail.acucore.com/
Also on:    postgresql.org/message-id/1019080354.3cbdeea2e006c@webmail.acucore.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: dan@acucore.com, PHillensbeck@sfbcic.com, poppcorn@cornelia-boenigk.de
  Subject: Re: 
  In-Reply-To: <1019080354.3cbdeea2e006c@webmail.acucore.com>
  References: <1019080354.3cbdeea2e006c@webmail.acucore.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox