COM problems
| From: | gus | Date: | Sat, 18 Dec 1999 00:52:41 +0000 |
| Subject: | COM problems | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-8117@lists.php.net to get a copy of this message | ||
Hi!
I'm trying to replace my ASP scripts with PHP and I have a problem
with a recordset object: The $rs->Fields[$i]->Value is always empty.
Does anybody see something wrong in this code?
$rs = $q->CreateRecordSet("nonsequential");
$rs->PageSize = 10;
if (!$rs->EOF) {
$c = 0;
while (!rs->EOF && $c<$rs->PageSize) {
for ($i=0; $i<5; $i++) {
echo $rs->Fields[$i]->Value
}
$rs->MoveNext;
$c++;
}
$rs->Close;
} else {
echo "EOF";
}
Thanks in advance
Guido