Re:

From: Dan Wilson <dan(at)acucore(dot)com>
To: "Hillensbeck, Preston" <PHillensbeck(at)sfbcic(dot)com>
Cc: 'Cornelia Boenigk' <poppcorn(at)cornelia-boenigk(dot)de>, pgsql-php(at)postgresql(dot)org
Subject: Re:
Date: 2002-04-17 21:52:34
Message-ID: 1019080354.3cbdeea2e006c@webmail.acucore.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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(at)sfbcic(dot)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
>

Browse pgsql-php by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-04-18 01:33:50 Re: PERFORMANCE
Previous Message Eckhard Hoeffner 2002-04-17 21:46:24 Re: