Received: from smtp2.sfbcic.com (smtp-outgoing.sfbcic.com [207.203.128.91]) by postgresql.org (Postfix) with ESMTP id D8E91475469 for ; Wed, 17 Apr 2002 17:04:24 -0400 (EDT) Received: from zeus ([207.203.128.81]) by smtp2.sfbcic.com with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 17 Apr 2002 15:59:29 -0500 Received: from mercury.sfbcic.com ([10.65.10.14]) by zeus; Wed, 17 Apr 2002 16:04:24 -0500 (CDT) Received: by MERCURY with Internet Mail Service (5.5.2653.19) id <1515R6NL>; Wed, 17 Apr 2002 16:03:22 -0500 Message-ID: <040AE3A029B3D51181D000508BC75D0201387762@MERCURY> From: "Hillensbeck, Preston" To: "'pgsql-php@postgresql.org'" Subject: Date: Wed, 17 Apr 2002 16:03:21 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200204/50 X-Sequence-Number: 1074 I am currently experiencing a problem passing data from a PHP page to PostgreSQL. I am passing different data types like numeric, and text. Let me show you some of the code I am using.... This is the code that I am using to pass the input data to a page called "checkbook2.php"

Check Date Check Number Check Payee Check Amount

Check Transaction Type

This is the data from the checkbook2.php that talks to the PostgreSQL Server. It is running version 7.2. $conn=pg_connect("host=192.168.0.2 user=postgres password=postgres dbname=checkbook"); @$sql="INSERT INTO checking VALUES('$check_date', '$check_num', '$check_pay', '$check_amount', '$check_trans_type');"; $result=pg_exec($conn, $sql); check_data is type text check_num is type int4 check_pay is type text check_amount is type numeric(8,2) 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 Anyone know what could be going on here?? Please let me know, thanks in advance! :)