private function SqlExecute($sql, $array = [], $param = []) { if(sizeof($array) == sizeof($param)) { $ini__li = $this->Connect(); $Query = $ini__li->prepare($sql); $pr = [ 0 => PDO::PARAM_INT, 1 => PDO::PARAM_STR ]; $i = 0; foreach($array as $key => $str) { $p = $param[$i]; $Query->bindParam($key, $str, $pr[$p]); $i++; } return $Query->execute(); }else{ return false; } } In the $param array, the values ​​0 or 1 are passed.
In the $array , the mask key and value.
Some queries are executed, and some are not. I can not find an error.