[eluser]Unknown[/eluser]
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
Code:
$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";
die();
}
else
{
echo "works";
}