Re: Re: PHP and inet data type

From: mikeo <mikeo(at)spectrumtelecorp(dot)com>
To: kparker(at)eudoramail(dot)com, pgsql-general(at)hub(dot)org
Subject: Re: Re: PHP and inet data type
Date: 2000-06-08 21:47:25
Message-ID: 3.0.1.32.20000608174725.0094b450@pop.spectrumtelecorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

just a curiosity question...is the pg_FieldType() function
something you wrote yourself? i was unable to find it and,
as i'm new to postgres, want to know everything yesterday... :)

mikeo

>
> pg_FieldType() says the column is 'inet' and the results print like
this w/o any special effort:
>

> 10.0.0.3
> 10.0.0.4
> 10.0.0.54
> 10.0.0.158
>
>Updates work just as easily:
>
> if (! ($update = pg_exec( $conn,
> "update acct set session_ip = '$REMOTE_ADDR', \
> last_login = 'now'::text where account = $data[0]")))
>
>
>
>
>Join 18 million Eudora users by signing up for a free Eudora Web-Mail
account at http://www.eudoramail.com
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-06-08 23:24:58 Re: Book nearing final form
Previous Message Philip Hallstrom 2000-06-08 18:42:09 DefineIndex: function 'lower(varchar)' does not exist !?!?!?