Re: updating integer column - Mailing list pgsql-php

From Christopher Kings-Lynne
Subject Re: updating integer column
Date
Msg-id 20030223191215.V3637-100000@houston.familyhealth.com.au
Whole thread Raw
In response to updating integer column  (Bruce Young <hbrucey@yahoo.com>)
Responses Re: updating integer column  (Bruce Young <hbrucey@yahoo.com>)
List 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 by date:

Previous
From: Devrim GUNDUZ
Date:
Subject: Re: updating integer column
Next
From: Bruce Young
Date:
Subject: Re: updating integer column