<? public function Oldquery($q){ $this->queryCount ++; if(mysqli::query($q)){ return new SQLResult($this); }else{ return false; } } ?>
<? $result = $mysqli->query("SELECT * FROM `setting`"); while($setup=mysqli_fetch_array($result)) { $setup['name'] = $setup['value']; } $result->close(); ?>
<?php $result = $mysqli->query("SELECT * FROM `setting`"); while($setup=$result->fetch_array()) { $setup['name'] = $setup['value']; } $result->close(); ?>
не $result->close(); а $mysqli->close();
$setup = $mysqli->query("SELECT * FROM `setting`")->fetch_all(MYSQL_ASSOC);
<?php $setup = $mysqli->query("SELECT * FROM `setting`;")->fetch_assoc(); ?>