Tags
PHP
Asked 5 years ago
14 Nov 2019
Views 1279
Phpworker

Phpworker posted

mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in


		$result  = mysqli_query($conn,$query);

		while($row=mysqli_fetch_assoc($result)) {
			$resultset[] = $row;
		}		
Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

mysqli_fetch_assoc($result) so here $result should be return from mysqli_query result set and as per its boolean .

so try to check why mysqli_query is not return result is reset to boolean .
Post Answer