Re: Re: PHP and inet data type

mikeo <mikeo@spectrumtelecorp.com>

From: mikeo <mikeo@spectrumtelecorp.com>
To: kparker@eudoramail.com, pgsql-general@hub.org
Date: 2000-06-08T21:47:25Z
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
>