Welcome Guest, Not a member yet? Register   Sign In
Issues connecting to Oracle DB

Anybody know why i can get this to work in a simple php script but when I try to use it in CodeIgniter it doesn't work.

I get this error :
Message: oci_connect(): ORA-12154: TNS:could not resolve the connect identifier specified

$oracle_username = 'username';
  $oracle_password = 'password';
  $connection_string = 'dwprd';
  $oracle_connection = oci_connect($oracle_username, $oracle_password, $connection_string);
  if( ! $oracle_connection)
   $error = oci_error();
   echo "owned";
   echo "works";

Theme © iAndrew 2016 - Forum software by © MyBB