Hi all, I'm running into a problem with PHP and mysql. I run a mySQL query, which returns the following object:

mysqli_result Object ( [current_field] => 0 [field_count] => 2 [lengths] => Array ( [0] => 1 [1] => 186 ) [num_rows] => 1 [type] => 0 )

I then try to fetch the data with $object->fetch_array(MYSQLI_ASSOC) but get this error: Call to a member function fetch_array() on boolean

I am very confused because I am calling the function on an object, not a bool... any ideas?

Ah, I dislike how we can't delete posts on here. I was looking at the wrong object, the one actually at fault was indeed a bool value.

Usually you flag the post for moderation (upper right of the post) and ask for it the be removed as it was a mistaken post.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.