if(!empty($param) && !empty($type_param)){
if(
(($stmt = $this->mysqli->stmt_init())===false) or
(($stmt->prepare($sql))===false) or
($stmt->bind_param($type_param, $param)===false) or
($stmt->execute()===false) or ГОВОРИТ ОШИБКА В ЭТОЙ СТРОКЕ
(($result = $stmt->get_result())===false) or
($stmt->close()===false)
){
throw new \Exception("SQL error: " . $stmt->error);
}
} else {
$result = $this->mysqli->query($sql);
}
_____________
Youtube канал WebDeveloper->Run()
Сайт для души
Gitter