Re: Re: PHP and inet data type - Mailing list pgsql-general

From mikeo
Subject Re: Re: PHP and inet data type
Date
Msg-id 3.0.1.32.20000608174725.0094b450@pop.spectrumtelecorp.com
Whole thread Raw
In response to Re: PHP and inet data type  ("K Parker" <kparker@eudoramail.com>)
List 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
>

pgsql-general by date:

Previous
From: Charles Tassell
Date:
Subject: Re: Re: Paging through records on the web
Next
From: Neil Thompson
Date:
Subject: Re: Book nearing final form