pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chadwick Rolfs <cmr@shell.gis.net>
To: Hillensbeck, Preston <PHillensbeck@sfbcic.com>
Cc: 'pgsql-php@postgresql.org' <pgsql-php@postgresql.org>
Subject: Re:
Date: Wed, 17 Apr 2002 17:28:41 -0400 (EDT)
Message-ID: <Pine.SOL.3.96.1020417172353.22927D-100000@shell.gis.net> (raw)
In-Reply-To: <040AE3A029B3D51181D000508BC75D0201387762@MERCURY>

On Wed, 17 Apr 2002, Hillensbeck, Preston wrote:

>     <input type="text" name="check_trans_type" VALUE="">

> 
> @$sql="INSERT INTO checking VALUES('$check_date', '$check_num',
> '$check_pay', '$check_amount', '$check_trans_type');";

> check_trans_type is type text
> 
> The error that comes up is ...
> Warning: PostgreSQL query failed: ERROR: Bad numeric input format
> 'check_trans_type' in /etc/httpd/htdocs/checkbook2.php on line 41
> 

POST_VARS should always be strings.  Have you tried this without the php,
as in psql.  What happens when you replace, in the insert statement,
$check_trans_type, with a correct value?  Is it supposed to be like
withdrawl, deposit...etc?
Good luck


Chadwick Rolfs - cmr@gis.net
Cleveland State University - Student
Music Major - The Holden Arboretum Volunteer
Computer Programmer - Student Employee
--*I finally found powdered water;
I just can't figure out what to add to it*--




view thread (4+ messages)  latest in thread

Message-ID: <Pine.SOL.3.96.1020417172353.22927D-100000@shell.gis.net>
Permalink:  ../Pine.SOL.3.96.1020417172353.22927D-100000@shell.gis.net/
Also on:    postgresql.org/message-id/Pine.SOL.3.96.1020417172353.22927D-100000@shell.gis.net

 · 

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: cmr@shell.gis.net, PHillensbeck@sfbcic.com
  Subject: Re: 
  In-Reply-To: <Pine.SOL.3.96.1020417172353.22927D-100000@shell.gis.net>
  References: <040AE3A029B3D51181D000508BC75D0201387762@MERCURY> <Pine.SOL.3.96.1020417172353.22927D-100000@shell.gis.net>

* 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