2 Replies Latest reply: Jul 14, 2011 7:04 PM by orafad RSS

    Using php to connect to Oracle Database 11g Release 2 Enterprise Edition

    865124
      Greetings everyone!
      Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...

      define('ORA_CON_UN', 'hr'); // User name
      define('ORA_CON_PW', 'Adlibs14$'); // Password
      define('ORA_CON_DB', '//localhost/XE'); // Connection identifier


      // use constants defined in anyco_cn.inc
      $conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
      if (!$conn) {
      db_error(null, __FILE__, __LINE__);
      }

      Edited by: user11273096 on Jul 14, 2011 3:41 PM