以下代码不会将记录更新到 Oracle 数据库中。任何人都可以帮助这背后的确切原因。如果有任何其他原因可能造成问题,请提出建议。提前致谢
<?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!!!";
}
}
?>