pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eckhard Hoeffner <e-hoeffner@fifoost.org>
To: pgsql-php@postgresql.org
Subject: Re:
Date: Wed, 17 Apr 2002 23:46:24 +0200
Message-ID: <20020417214624.GA6452@fifoost.org> (raw)
In-Reply-To: <040AE3A029B3D51181D000508BC75D0201387763@MERCURY>
References: <040AE3A029B3D51181D000508BC75D0201387763@MERCURY>

* Hillensbeck, Preston <PHillensbeck@sfbcic.com> [17 04 02 23:30]:

>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.

Looks like the definition of the attribut check_trans_type is not
text, but numeric. The quotes are not needed when entering numeric
data but they also do not disturb. 

>
>
>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.
>

-- 
--//--\\--
Eckhard Hoeffner
e-hoeffner@fifoost.org
Tal 44 
D-80331 München



view thread (2+ messages)

Message-ID: <20020417214624.GA6452@fifoost.org>
Permalink:  ../20020417214624.GA6452@fifoost.org/
Also on:    postgresql.org/message-id/20020417214624.GA6452@fifoost.org

 · 

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: e-hoeffner@fifoost.org
  Subject: Re: 
  In-Reply-To: <20020417214624.GA6452@fifoost.org>
  References: <040AE3A029B3D51181D000508BC75D0201387763@MERCURY> <20020417214624.GA6452@fifoost.org>

* 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