Topic: MySQL $forum_db Request Help
So, I'm trying to follow the faq on how to work with $forum_db-> results, but I can't seem to get it to return anything but the number of rows in the result (using $forum_db->num_rows($result);), or at least return it in a way I can use.
Here's what I've got so far:
$jchat_query = array(
'SELECT' => 'g.g_id, g.g_title',
'FROM' => 'groups AS g'
);
$jchat_result = $forum_db->query_build($jchat_query) or error(__FILE__, __LINE__);
$jchat_query_rows = $forum_db->fetch_row($jchat_query);
$jchat_group_id = $jchat_query_rows[0];
echo $jchat_group_id; // returns nothing
print_r($jchat_group_id); // also returns nothing
$rows = $forum_db->num_rows($jchat_result);
printf($rows); // returns 12, which is correct
print_r($jchat_query_rows); // returns nothing
print_r($jchat_query); // returns the proper query array as above
print_r($jchat_result); // returns mysqli_result Object ( )
echo $jchat_query_rows['Administrators']; // nothing
echo $jchat_query_rows['1']; // nada
echo $jchat_query_rows[1]; // zilch
Can someone enlighten me on what I'm doing wrong?