Re: updating integer column

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: updating integer column
Дата
Msg-id 20030223191215.V3637-100000@houston.familyhealth.com.au
обсуждение исходный текст
Ответ на updating integer column  (Bruce Young <hbrucey@yahoo.com>)
Ответы Re: updating integer column  (Bruce Young <hbrucey@yahoo.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..

Ummm...don't leave it blank???

> oh and what is the best datatype to use for a 10 digit phone number?.

I'd use a varchar...

Chris


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

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