I am passing $query"UPDATE...", which has no errors, to a query method. I have checked other posts but they all point to the query which does not appear to be my problem.
public function query($sql) {
$this->_result = mysqli_query($this->_link, $sql);
$this->_numRows = mysqli_num_rows($this->_result);
}
$db->numRows();
I am receiving the error 'mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in...', like i said there is nothing wrong with the query, _numRows is returning the correct value but the numRows() method which returns _numRows, is returning the error. Any ideas would be much appreciated. Thanks.