Oracle and PHP

From: hass_79 (hasna_79_at_hotmail-dot-com.no-spam.invalid)
Date: 04/13/04


Date: Tue, 13 Apr 2004 03:25:11 -0500

hi all,
I use to get an error while retrieving data from oracle databse.

Warning: ociparse(): supplied argument is not a valid OCI8-Connection
resource in
Warning: ociexecute(): supplied argument is not a valid OCI8-Statement
resource in
Warning: ocirowcount(): supplied argument is not a valid
OCI8-Statement resource in
Warning: ocifetch (): supplied argument is not a valid OCI8-Statement
resource in

In the mean time Im not getting any error but its not
retrieving the data.

Part of my script:

<?php
iDBConn = ocilogon("TIGER", "SCOT",
"ORACLDB"); qGetEmployees = "SELECT STAFF_ENNAME
FROM HR_STAFF_MAST";

iStatement = @OCIParse(iDBConn, qGetEmployees);
@OCIExecute(iStatement, OCI_DEFAULT);
// check our query

arrError = OCIError(iStatement);
if (arrError['code'])
{
print arrError['message'];
exit;
}
while (OCIFetch(iStatement) ) {
echo"<tr>";
if(!empty(iStatement))
{
result=OCIResult(iStatement, "STAFF_ENNAME");{
?>

I also tried oci_connect but i'm getting the following error
Fatal error: Call to undefined function: oci_connect()

My configuration: PHP Version 4.3.2, Apache 1.3, Windows 2000, Oracle
8i.

thanks
Please advise

hass_79
 

----------------------------------------
The post originated from PHP Freaks:
----------------------------------------
http://www.phpfreaks.com
http://www.phpfreaks.com/forums



Relevant Pages

  • Re: PHP [win32] & CLI Testers needed.
    ... My previous attempts to create the source below, ended with the loop ... argument is not a valid stream resource ... Debug Warning: testforLinuxUser.php line 26 - fread: supplied argument ...
    (php.general)
  • Re: Bug
    ... Warning: flock() expects parameter 1 to be resource, boolean given in / ...
    (comp.lang.php)
  • D945GTP Components trouble
    ... I've successfully created a target image with custom components once, ... import to Component Designer and it appears to go ok, ... resource HKEY_LOCAL_MACHINE\Software\INTEL\. ... Warning 1121: Can not find the resource iAlmCoIn.dll for Intel ...
    (microsoft.public.windowsxp.embedded)
  • Bug
    ... Warning: flock() expects parameter 1 to be resource, boolean given in / ...
    (comp.lang.php)