RE: [PEAR] Oracle and numRows
| From: | Lukas Smith | Date: | Tue, 16 Dec 2003 13:27:48 +0000 |
| Subject: | RE: [PEAR] Oracle and numRows | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9565@lists.php.net to get a copy of this message | ||
> From: Dimoff, Steve [mailto:sdimoff@accipiter.com]
> Sent: Tuesday, December 16, 2003 2:18 PM
> To: 'Lukas Smith'; Dimoff, Steve; pear-general@lists.php.net
> Subject: RE: [PEAR] Oracle and numRows
>
> Well... that worked, however now I'm getting Undefined index errors.
>
> [11 rows returned] <---- NO LONGER SAYS OBJECT!
>
> BUT....
>
>
> Notice: Undefined index: RUR_ID in /www/htdocs/userregresults.php on line
> 51
<snip>
The reason for that is that portability mode also lowercases all keys when
you do associative fetches. So you will need to lowercase all your keys.
So instead of
$result['RUR_ID']
You will need to do
$result['rur_id']
Regards,
Lukas