我的PHP代码在这里:
<?php
$conn = oci_connect('user', 'test', 'localhost/db');
if (!$conn) {
$e = oci_error();
}
else
{
$st_en=oci_parse($conn, " begin :r:=admin.encrypt_password('$row_pd[0]');end; ");
ociexecute($st_en);
while (($row_en=oci_fetch_row($st_en))!=false)//checking
{
if ( $pword==$row_en[0])//password matching
{
echo "success";
}
else
{
echo "sorryyyyyyyyyy";
}
}
oci_free_statement($stid);
oci_close($conn);//connection close
}
?>
当我执行此代码时出现此错误:
error code ora01008 occurred, not all variables bound