Jump to content

Oracle Procedure


Recommended Posts

<?php
if ($c = oci_connect("****","****", "****")) {
   echo "Successfully connected to Oracle";
   //oci_close($c);
} else {
   $err = oci_error();
   echo "Oracle Connect Error " . $err['text'];
}
  
$stmt="BEGIN display_msg(_login_id, _date, _msg); END;"
    //$stmt="	SELECT *
//			FROM display_msg";

//if (oci_num_rows($stmt) == 0) {
//	echo '<meta http-equiv="refresh" content="0;url=changeclub.php" />';
//}

    $qres=oci_parse($c,$stmt);
oci_bind_by_name($qres, "_login_id", $slogin);
oci_bind_by_name($qres, "_date", 'sysdate');
oci_bind_by_name($qres, "_msg", $message, 32);

    oci_execute($qres);

//while (oci_fetch($qres)) {
//	echo oci_result($qres, "msg_meaning") ."<br /><hr /><br />\n";
//}

echo $message;

    oci_commit($c);
?>

 

The oci_bind_by_name is causing a blank screen! So stuck as to why this is happening.

 

Regards,

Matt

Link to comment
https://forums.phpfreaks.com/topic/161822-oracle-procedure/
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.