updating integer column

Поиск
Список
Период
Сортировка
От Bruce Young
Тема updating integer column
Дата
Msg-id 20030222160726.91848.qmail@web10410.mail.yahoo.com
обсуждение исходный текст
Ответы Re: updating integer column  (Devrim GUNDUZ <devrim@tr.net>)
Re: updating integer column  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Re: updating integer column  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-php
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/

В списке pgsql-php по дате отправления:

Предыдущее
От: Adam Witney
Дата:
Сообщение: Re: tcp connections
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: updating integer column