|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-05-21 23:19 UTC] kalowsky@php.net
[2002-06-11 08:53 UTC] vito dot moscato at katamail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
I am running PHP 4.1.1 as a CGI with Apache 1.3.20. I have an Oracle database, version 8.1.7, running on the same machine. I am trying to read the database using ODBC. I am using the MS ODBC driver for Oracle 2.573.6019.00. I get the same result using an Oracle ODBC driver. I get the following error: "OleMainThreadWndName: php.exe application error" "The instruction at 0x77f6cc80 referenced memory at 0x00000031. The memory could not be read." I can connect successfully to the database with no errors using OCI. ---- Script ------ <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <table> <td><b>Dname</b></td> </tr> <?php $connectionstring = odbc_pconnect("ODBCMSORACLE", "scott", "tiger"); //$Query = "SELECT dname FROM dept"; //$queryexe = odbc_do($connectionstring, $Query); //odbc_fetch_row($queryexe); //$fname = odbc_result($queryexe, 1); //print ("<tr><td>$fname</td></tr>"); odbc_close($connectionstring); ?> </table> </body> </html> ---- End Script --