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 Quote Link to comment Share on other sites More sharing options...
Solution PravinS Posted April 13, 2015 Solution 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 Quote Link to comment 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.