From: Bruce Young <hbrucey@yahoo.com>
To: PostgresPHP <pgsql-php@postgresql.org>
Subject: updating integer column
Date: Sat, 22 Feb 2003 08:07:26 -0800 (PST)
Message-ID: <20030222160726.91848.qmail@web10410.mail.yahoo.com> (raw)
hi all, i have a table with an int8 column.
my PHP script should update a row with the new values in the form.
it works fine if i put a number in the field but gives this error if left
blank:
Warning: pg_exec() query failed: ERROR: Bad int8 external representation "" in
/home/httpd/htdocs/forms/manage/update_profile.php on line 140
how can i get around this..
oh and what is the best datatype to use for a 10 digit phone number?.
any help appreciated.
thanks
- bruce
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
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: hbrucey@yahoo.com
Subject: Re: updating integer column
In-Reply-To: <20030222160726.91848.qmail@web10410.mail.yahoo.com>
References: <20030222160726.91848.qmail@web10410.mail.yahoo.com>
* 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