Skip site navigation (1) Skip section navigation (2)

Re: updating integer column

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Bruce Young <hbrucey(at)yahoo(dot)com>
Cc: PostgresPHP <pgsql-php(at)postgresql(dot)org>
Subject: Re: updating integer column
Date: 2003-02-23 11:12:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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...


In response to


pgsql-php by date

Next:From: Bruce YoungDate: 2003-02-23 18:14:42
Subject: Re: updating integer column
Previous:From: Devrim GUNDUZDate: 2003-02-22 16:56:20
Subject: Re: updating integer column

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group