The Following Code is not Updating the records into Oracle Database. Can any one please help what exactly the cause behind this. If any other reason might be making problem please suggest. Thanks in advance
<?php
if(isset($_GET['submit'])) {
echo $sl_no = $_GET['sl_no'];
echo $subject = $_GET['subject'];
// update Subject
$str2 = "update application_form af set af.subject_code=:subject where af.application_form_sl_no=:sl_no";
$stid_update2 = oci_parse($conn, $str2);
oci_bind_by_name($stid_update2, ":subject", $subject);
oci_bind_by_name($stid_update2, ":sl_no", $sl_no);
oci_execute($stid_update2);
$success2 = oci_commit($conn);
// send successful message
if($success2)
{
echo "Form saved Successfully!!!";
}
}
?>
oci_error