pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedRe:
2+ messages / 2 participants
[nested] [flat]
* Re:
@ 2002-04-17 21:30 Hillensbeck, Preston <PHillensbeck@sfbcic.com>
0 siblings, 1 reply; 2+ messages in thread
From: Hillensbeck, Preston @ 2002-04-17 21:30 UTC (permalink / raw)
To: Cornelia Boenigk <poppcorn@cornelia-boenigk.de>; pgsql-php
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.
-----Original Message-----
From: Cornelia Boenigk [mailto:poppcorn@cornelia-boenigk.de]
Sent: Wednesday, April 17, 2002 4:19 PM
To: pgsql-php@postgresql.org
Subject: Re: [PHP]
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re:
@ 2002-04-17 21:46 Eckhard Hoeffner <e-hoeffner@fifoost.org>
parent: Hillensbeck, Preston <PHillensbeck@sfbcic.com>
0 siblings, 0 replies; 2+ messages in thread
From: Eckhard Hoeffner @ 2002-04-17 21:46 UTC (permalink / raw)
To: pgsql-php
* 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-04-17 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17 21:30 Re: Hillensbeck, Preston <PHillensbeck@sfbcic.com>
2002-04-17 21:46 ` Eckhard Hoeffner <e-hoeffner@fifoost.org>
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