jmurch Posted June 10, 2009 Share Posted June 10, 2009 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"; ?> Quote Link to comment Share on other sites More sharing options...
jmurch Posted June 11, 2009 Author Share Posted June 11, 2009 I am using the same connection to perform selects and it works fine........... Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted June 11, 2009 Share Posted June 11, 2009 $statement = $db->prepare("CALL " . $call."(".$inParams.",?)"); $statement->bindParam(1, $outParam, PDO::PARAM_STR, 32767); $returnVal = $statement->execute(); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.