Answer the question
In order to leave comments, you need to log in
php error unable to output data?
Hello. Here's the code.
Here is such an error.
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in D:\PROJECTS\myproject_new\OpenServer\domains\dsdsfsd\index.php on line 110 I
recently started watching a video on php and as always everything works smoothly without any problems. There, the truth is mysql_ and I have to somehow redo it on mysqli_ and now I came across an error.
Answer the question
In order to leave comments, you need to log in
if (!$result) {
printf("Errormessage: %s\n", mysqli_error($connect));
}
your connection is not established, in the code it should be
if (!$connect) {
echo 'Can\'t connect to database. Err: '.mysqli_connect_error();
exit;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question