Why won\'t this work? I keep getting that error. // Setup forum topics, post count and last post xxxxx
$query = array(
\'SELECT\' =>
You're trying to use a mysqli result ($result
) as an array without calling fetch_array
on it.
Whatever framework you're using will probably provide a wrapper for this.
Well, you seem to have "something" (maybe $result ?) as an object ; and you are using everything as arrays.
Maybe you have a way to fetch data as arrays, and not objects ? (Might be a way with the class you are using ? )
Or, you need to access data as objects, and not arrays ; maybe $result->subject, and not $result['subject'] would do ?