ociexecute():ORA-00907:缺少右括号

时间:2016-12-01 17:43:23

标签: php sql

虽然我有所有的括号..还有其他原因我可能会收到此错误吗?这是我的PHP代码。我显然删除了我的密码,所以这不是原因。

 <?php

 modDatabase();

 function modDatabase() {

   ini_set('display_errors','On');
   error_reporting(E_ALL);
   $db_host = "";
   $db_user = "";
   $db_pass = "";
   $con = oci_connect($db_user, $db_pass, $db_host);
   // Check connection
   if (!$con){
      $e = oci_error;
        print "<br> connection failed:";
        print htmlentities($e['message']);
        exit;
  }

  $today = date("H:i:s");
  $one="1";
  $sql="call createRepairJob('$_POST[contract]', '$_POST[rId]', '$_POST[cust]' , '$_POST[product]' , $today , $one , '$_POST[employee]' , '$_POST[prob]' , '$_POST[model]')";
  $sqlParse = OCIParse($con, $sql);
  $result = OCIExecute($sqlParse);

  if (!$result){
    echo "invalid";
    exit;
  }
  echo "success";
  OCILogoff($con);

}


?>

0 个答案:

没有答案