I 've an error that I can't resolve, so I need help. I've first looked for tutorails but no of them can help me further.
Error:
mysqli_error() expects exactly 1 parameter, 0 given
Code:
$resultset = @mysqli_query($query, $this->link) or $this->error(mysqli_error());
How to fix this problem?
Change to
$resultset = mysqli_query($this->link, $query) or mysqli_error($this->link);
// Notice that $this->link is the first parameter
If $this->error
is indeed a function, then you'll have:
$resultset = mysqli_query($this->link, $query) or $this->error( mysqli_error($this->link) );