0

I have uncommented the following two lines in my php.ini:

extension=php_pdo_oci.dll
extension=php_oci8_12c.dll

Code:

public static function getAllNames(){
    $dbUser = "xxx";
    $dbPass = "xxxx";
    $dbConn = "(DESCRIPTION = (ADDRESS = (PROTOCOL=TCP)(HOST=xxxx)(PORT=xxxx))(CONNECT_DATA=(SID=xxxx)))";
    $conn = oci_connect($dbUser, $dbPass, $dbConn);
    $sql = oci_parse($conn,"Select FNAME, LNAME from PERSONA  WHERE STATUS = 'A' ORDER BY FNAME");
    return $sql;
    }

I'm not able to get rid of the error. I have seen a couple of questions similar to mine, but most of them were using apache server and couldn't really solve my problem. Any help would be appreciated. Thanks

AAM
  • 321
  • 5
  • 24

1 Answers1

1

I had the same issue but with mysqli_connect()

I removed and did autoremove the webserver and php and reinstalled them again, and it worked.

Zeko
  • 105
  • 1
  • 10