|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-03-30 04:12 UTC] 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);
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jan 05 02:00:02 2026 UTC |
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