From: Surojit Niyogi <surojit@bungeecode.com>
To: P. Jourdan <pippo@videotron.ca>
Cc: pgsql-php@postgresql.org
Subject: Re: boolean error
Date: Thu, 02 May 2002 16:20:42 -0500
Message-ID: <3CD1ADAA.2060304@bungeecode.com> (raw)
References: <5.1.0.14.2.20020502122037.00a6ef60@mail.host45.com>
It can't understand
<font >color=red><b>YES></b></font>
as a true or false representation for a boolean value. You need to use
either (true or false), (yes or no), or (1 or 0)
Roj Niyogi
Founder
pgHoster - PostgreSQL web hosting
http://www.pghoster.com
P. Jourdan wrote:
> I am getting this in the error log file:
> ERROR: Bad boolean external representation '<font
> >color=red><b>YES></b></font>'
>
> The code that is generating the message is all within the php
> delimiters (entire file) and appears several times as follows:
>
> if($r1==0 || $r2==0) {
> if($archived=='Y') {
> $archived="<font color=red><b>YES</b></font>";
> }
> ;;;
>
> select wares.ware_id,wares.name,category.name,unit_size,
> qty_per_shipping_unit,supplier.name,sku,
> case when wares.archived='t' then '<font
> color=red><b>YES</b></font>' else wares.archived end as archived,
> trademark.name
> from wares,category,wares_category,supplier_wares,supplier,trademark
> where wares.ware_id=wares_category.ware_id and
> category.category_id=wares_category.category_id and
> wares.ware_id=supplier_wares.ware_id and
> supplier_wares.supplier_id=supplier.supplier_id and
> wares.trademark_id=trademark.trademark_id";
> I do not understand what is wrong? (This apparently worked fine in the
> original online web site.)
> Does anyone understand this?
> Philip Jourdan
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: surojit@bungeecode.com, pippo@videotron.ca
Subject: Re: boolean error
In-Reply-To: <3CD1ADAA.2060304@bungeecode.com>
References: <5.1.0.14.2.20020502122037.00a6ef60@mail.host45.com> <3CD1ADAA.2060304@bungeecode.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox