#27770 [Opn->Fbk]: reading data from Access thrugh COM function

From: Date: Tue, 30 Mar 2004 10:21:45 +0000
Subject: #27770 [Opn->Fbk]: reading data from Access thrugh COM function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57090@lists.php.net to get a copy of this message
ID: 27770 Updated by: wez@php.net Reported By: kaija_jan at hotmail dot com -Status: Open +Status: Feedback Bug Type: COM related Operating System: windows 2k PHP Version: 5.0.0RC1 New Comment: Please indicate how the data is different. Also, are you sure that your example script is correct? $oRs->Fields->["test"]->value ^^^^ this looks bogus $oRs->Release() won't work in PHP 5 Please read this for more information: http://www.zend.com/php5/articles/php5-dotnet.php Previous Comments: ------------------------------------------------------------------------ [2004-03-30 04:12:19] kaija_jan at hotmail dot com Description: ------------ i try to use COM function to read data from Access database. but if the fields type is ole object. the data will different with the asp code. here is my php code. the type of field "test" is oleobject. there is no error during run time. Reproduce code: --------------- <? $oConn = new COM("ADODB.Connection"); $oConn->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\abc.mdb"); $oRs = $oConn->Execute("select * from test"); $a = "c:\abc"; while(!$oRs->EOF) { $Data = $oRs->Fields->["test"]->value; $oRs->MoveNext(); } $oRs->Close(); $oConn->Close(); $oRs->Release(); unset($oRs); unset($oConn); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27770&edit=1

« previous php.bugs (#57090) next »