Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php oci_execute()错误消息_Php_Sql_Oracle_Ora 00904 - Fatal编程技术网

Php oci_execute()错误消息

Php oci_execute()错误消息,php,sql,oracle,ora-00904,Php,Sql,Oracle,Ora 00904,我收到下面的错误消息。oracle还应使用哪些其他压缩功能(SHA1除外) 警告:oci_execute()[function.oci execute]:ORA-00904:“SHA1”:第2行/user_auth_fns.php中的标识符无效 $result = oci_parse($conn, "select * from user where username='$username' and passwd = sha1('$password')"); $r = oci_execute($

我收到下面的错误消息。oracle还应使用哪些其他压缩功能(SHA1除外)
警告:oci_execute()[function.oci execute]:ORA-00904:“SHA1”:第2行/user_auth_fns.php中的标识符无效


$result = oci_parse($conn, "select * from user where username='$username' and passwd = sha1('$password')");
$r = oci_execute($result);
  if (!$r) {
   $error = oci_error($conn);
  echo "Could not log you in." . $error['message'];
  exit;

SHA1
是一个PHP函数,而不是Oracle。您需要使用以下内容:

AND passwd = '{sha1($password)}'