I have the following code:
$result=$db->query("SELECT * FROM gwub WHERE gwubStatus > 0") or die(mysqli_error($db));
if($result->num_rows>0)
{
while($row=mysqli_fetch_assoc($result)) {
The query is running and doing what it requires on the database but I am still getting the following warning:
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, string given
I am getting no mysqli errors and if i run command direct on database it works fine. There is only one result if that makes any difference?