COMfusion

From: Date: Mon, 27 Mar 2000 18:40:03 +0000
Subject: COMfusion
Groups: php.version4 
Request: Send a blank email to php-version4+get-12682@lists.php.net to get a copy of this message
Hi! I'm confused about accessing COM fields collection property of an ADO recordset with PHP4b4. 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? Guido

« previous php.version4 (#12682) next »