Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
oci_error message did not show any result — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

oci_error message did not show any result

Question
4
Views
0
Comments
edited Oct 4, 2017 7:00AM in Database

Summary

oci_error message did not show any result

Content

i have php script and the php is already compiled with oci8 oracle 11g library, but it's did not show any oci_error result.

Please help me, Thanks.

<?php

  date_default_timezone_set('Asia/Jakarta');

  include("conn_Oracle.inc.php");

  include("data_Oracle.inc.php");

$id  = isset($_GET['id'])  ? $_GET['id']  : '';

  $conn = oci_connect($Username, $Password, $Server);

  if (!$conn)

  {

echo "C";

    $e = oci_error();

echo $e['message'];

    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);

echo "A";

  }

echo "B";

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!