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
Share on other sites

Sorry, I'm not too familiar with PHP and ORACLE but you can put these lines directly after your opening <?php tags to display errors.

 

ini_set ("display_errors", "1");
error_reporting(E_ALL);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.