Jump to content

oci8 set serveroutput


jmurch

Recommended Posts

Does anyone know of a way to do this? I am not getting any of my OUT parameters when calling a stored procedure thru OCI8.  Besides serveroutput is there anywhere else that may preventing my getting the OUT values?

 

<?

$c = oci_connect("jeffm", "welcome1", "10.2.1.25:1524/cdba");

 

$sql = 'BEGIN apps.sayHello(:name, :message); END;';

 

$stmt = oci_parse($conn,$sql);

 

//  Bind the input parameter

oci_bind_by_name($stmt,':name',$name,32);

 

// Bind the output parameter

oci_bind_by_name($stmt,':message',$message,32);

 

// Assign a value to the input

$name = 'Jeff';

 

oci_execute($stmt);

 

// $message is now populated with the output value

print "$message\n";

?>

Link to comment
https://forums.phpfreaks.com/topic/161718-oci8-set-serveroutput/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.