public function all(){
$this->connect();
$stmt = $this->mysqli->stmt_init();
if (
($stmt->prepare($this->sql)===false) or
($stmt->bind_param($this->type_param, $ARRAY) === FALSE) or
($stmt->execute() === FALSE) or
(($result = $stmt->get_result()) === FALSE) or
($stmt->close() === FALSE)
){
throw new \Exception(
"SQL ERROR ({$this->mysqli->connect_errno})<br/>{$this->mysqli->connect_error}"
);
}
return $this->fields = $result->fetch_assoc();
}
_____________
Youtube канал WebDeveloper->Run()
Сайт для души
Gitter