Re: [PHP4BETA] COMfusion
| From: | rubys at us dot ibm dot com | Date: | Mon, 27 Mar 2000 18:47:22 +0000 |
| Subject: | Re: [PHP4BETA] COMfusion | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12685@lists.php.net to get a copy of this message | ||
Guido wrote:
>The following code produces a "Parse error: parse error, expecting
>
','' or ';'' in foo.php on line
>xx" for the third line:
>
> $rs = $q->CreateRecordSet("nonsequential");
> for ($i=0; $i<$rs->Fields->Count; $i++) {
> echo $rs->Fields($i)->Value; << Parse error
>
>My current workaround is this:
> $fld = $rs->Fields($i);
> echo $fld->Value;
>
>But how can I do this in a one-liner?
This is not possible with the current release of Zend (I miss it too, for
Java support). Zeev has indicated that this might be fixed in 4.1.
- Sam Ruby