Home php Error output from DB: Warning: mysql_fetch_array () expects parameter 1 to be...

Error output from DB: Warning: mysql_fetch_array () expects parameter 1 to be resource, boolean given in [duplicate]

Author

Date

Category

Result:

Warning: mysql_fetch_array () expects parameter 1 to be resource, boolean given in (path) on line 44


Answer 1, authority 100%

It was necessary to specify the following quotes `in the column name, it did not work with a single standard quote!

Working request:

$ zkhrow = mysql_query ("SELECT * FROM zhk where` zhk-id` = '$ id' "); // works!

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions