web_master Posted April 13, 2015 Share Posted April 13, 2015 Hi, I just begin to use msqli and I dont know what am I doing wrong? The warning message is: Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given in ... $QuerySelect = ' SELECT * FROM `a_slider` WHERE `a_slider_id` = "' . $a_slider_id . '" '; if(!$QuerySelect){ echo mysqli_error($dbConnect); exit; } $request = mysqli_fetch_array($QuerySelect); thanks T Link to comment https://forums.phpfreaks.com/topic/295488-mysqli_fetch_array-problem/ Share on other sites More sharing options...
PravinS Posted April 13, 2015 Share Posted April 13, 2015 you need to use $result = mysqli_query($link, $query); before $result_array = mysqli_fetch_array($result); or check this URL: http://php.net/manual/en/mysqli-result.fetch-array.php Link to comment https://forums.phpfreaks.com/topic/295488-mysqli_fetch_array-problem/#findComment-1508886 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.