0

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?

2
Contributors
2
Replies
10
Views
1 Year
Discussion Span
Last Post by rubberman
0

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.

0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.