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

Re: Bad date external representation

From: "Elijah O(dot) Alcantara" <elijah(at)asti(dot)dost(dot)gov(dot)ph>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: Bad date external representation
Date: 2004-07-05 09:09:50
Message-ID: 1089018590.23599.41.camel@Falcon (view raw or flat)
Thread:
Lists: pgsql-php
Thanks for the reply =)

But it looks like we have an old version of php - 4.0.6

pg_fetch_result
(PHP 4 >= 4.2.0) =( 

it looks like I need to use pg_fetch_row instead. 

Thanks again,
Elijah =)

On Mon, 2004-07-05 at 16:13, V i s h a l Kashyap @ [Sai Hertz And
Control Systems] wrote:
> Dear Elijah  ,
> 
> >Code:
> >  
> >
> >>$query = "Select date_created from organizationinfo where ctrl_no =
> >>'$ctrl_no'";
> >>$date_created = pg_Exec($connectGovPH, $query);
> >>
> >>$query = "Select date_modified from organizationinfo where ctrl_no =
> >>'$ctrl_no'";
> >>$date_modified = pg_Exec($connectGovPH, $query);
> >>    
> >>
> fetch results by pg_fetch_result and then insert the data
> 
> >>$query = "Insert into temp_organizationinfo
> >>VALUES('$ctrl_no','$organization_name','$domain_name','$loginID','$loginPassword','$date_created','$date_modified',4)";
> >>pg_Exec($connectGovPH, $query);
> >>    
> >>


In response to

pgsql-php by date

Next:From: Bastiaan WakkieDate: 2004-07-05 20:24:46
Subject: Warning: pg_fetch_row(): ...
Previous:From: V i s h a l Kashyap @ [Sai Hertz And Control Systems]Date: 2004-07-05 08:13:02
Subject: Re: Bad date external representation

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