I have this code :
include("connect.php");
// Call database function
$p = 100;
$sth = $conn->prepare('SELECT ISPPRO.USERPKG.GET_USER(:bind1, :bind3) AS v FROM DUAL');
$sth->bindParam(":bind1", $p, PDO::PARAM_INT);
$sth->bindParam(":bind3", $p, PDO::PARAM_INT);
$sth->execute();
$result = $sth->fetch(PDO::FETCH_ASSOC);
print_r( $result);
echo "<br><pre>";
print_r($conn->errorInfo());
echo "</pre>";
The ISPPRO.USERPKG.GET_USER returns 1 or 0;
How I can get it??
Thanks in advance.
EDIT:
I changed the above code and I am getting this error:
OCIStmtExecute: ORA-00904: "ISPPRO"."USERPKG"."GET_USER": invalid identifier
Do you have execute permission on the package?
User ISPPRO should run the command
An easy way to check if you’ve been granted execute on this package is to run this command:
You should get a row with EXECUTE as the privilege.