Page Code

It produces the following error:

Warning: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result, given in C: \ OpenServer \ domains \ test.ru \ index.php on line 14

Reported as a duplicate by Visman participants, Alexey Shimansky , Mike , aleksandr barakin , br3t July 14, 17 at 10:05 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • one
    I like falCe especially in this code. They would show all errors, warnings and notifications, and there would be no problem - teran

2 answers 2

1. Maybe you did not connect to the database, you wrote if ($ connection == falce) [should be false] 2. check if there is such a table, because the query can return a fall, also do isset ($ connection), and isset ( $ result)

    The problem is most likely in the quotes area. The query string is framed in double quotes, which is why articles_categories may attempt to execute as a console (shell) command. It is best to frame the query in single quotes. Plus, there is still not enough error output for some reason, the request was not executed and false returned in $ result