Re: Bad column offset weirdness
| From: | Richard Lynch | Date: | Tue, 26 Dec 2000 01:36:09 +0000 |
| Subject: | Re: Bad column offset weirdness | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31812@lists.php.net to get a copy of this message | ||
Maybe the data type of $i is somehow not getting cast to integer the way it
should...
Try using pg_result($result, 0, (int) $i)
----- Original Message -----
From: Frank Joerdens <frank@joerdens.de>
Newsgroups: php.general
Sent: Saturday, December 23, 2000 1:09 PM
Subject: [PHP] Bad column offset weirdness
> I am just seeing the most bizarre behaviour on the part of the PHP 4
parser:
>
> pg_result($result,0,$i) ($i happens to be exactly 1)
>
> gives: 'Warning: Bad column offset specified . . . '
>
> whereas
>
> pg_result($result,0,(0+$i)) works and gives the same result as
>
> pg_result($result,0,1)
>
> can anyone explain that?
>
> - Frank
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>