Bad date external representation

Поиск
Список
Период
Сортировка
От Elijah O. Alcantara
Тема Bad date external representation
Дата
Msg-id 1089014787.23599.31.camel@Falcon
обсуждение исходный текст
Ответы Re: Bad date external representation  ("V i s h a l Kashyap @ [Sai Hertz And Control Systems]" <sank89@sancharnet.in>)
Список pgsql-php
I keep getting this error:

> Warning: PostgreSQL query failed: ERROR: Bad date external
> representation 'Resource id #27' in
> /usr/local/apache/htdocs/asti/govph/functions/func_backup.php on line
> 16


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);
>
> $query = "Insert into temp_organizationinfo
>
VALUES('$ctrl_no','$organization_name','$domain_name','$loginID','$loginPassword','$date_created','$date_modified',4)";
> pg_Exec($connectGovPH, $query);

Here's the organizationinfo table:
>   ctrl_no integer not null,
>   organization_name varchar not null,
>   domain_name varchar not null,
>   login_id varchar not null,
>   login_password varchar not null,
>   date_created date,
>   date_modified date,
>   status int not null,
>   constraint pk_organizationinfo_ctrl_no primary key(ctrl_no)

Date's are usually inputted as "2002-06-04", Can anyone help me find out
what causes this error, and how do I fix it?? =(


Regards,
Elijah A.


В списке pgsql-php по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: PostgreSQL guru needed for Enterprise Groupware System
Следующее
От: "V i s h a l Kashyap @ [Sai Hertz And Control Systems]"
Дата:
Сообщение: Re: Bad date external representation