Re:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxx
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*--



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux