zero477 Posted November 9, 2012 Share Posted November 9, 2012 Hello to all .. It has been some time since I am not around here ... $results = vB::$db->query_read(" SELECT * FROM TABLE WHERE lalala='$lalalala' "); echo print_r ($results); /* When I preint_r the results I see this: mysqli_result Object ( [current_field] => 0 [field_count] => 16 [lengths] => [num_rows] => 1 [type] => 0 ) What is that???? Then I amtrying to get the results with: */ while($infocaca = mysqli_fetch_array($results)); { $wanttoseethis=$infocaca['columnname']; } /* When I echo $wanttoseethis I cannot see anything Quote Link to comment https://forums.phpfreaks.com/topic/270491-do-not-understand-a-query-with-mysqli-in-vbulletin/ Share on other sites More sharing options...
Barand Posted November 9, 2012 Share Posted November 9, 2012 Use the result object methods to fetch rows EG while ($infocaca = $results->fetch_assoc() ) http://www.php.net/manual/en/mysqli-result.fetch-assoc.php Quote Link to comment https://forums.phpfreaks.com/topic/270491-do-not-understand-a-query-with-mysqli-in-vbulletin/#findComment-1391266 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.