Home php Why does Call to a Member Function GetROW () ON NULL IN?

Why does Call to a Member Function GetROW () ON NULL IN?

Author

Date

Category

When using this library:
https://github.com/colshrapnel/safemysql/blob/master/ safemysql.class.php

Caused function:

$ id = 1;
$ db- & gt; getROW ("Select * from table where id =? i", $ ID);

Embodges: Call to a Member Function GetROW () on NULL IN Why, how to solve?


Answer 1, Authority 100%

Somewhere above in the code, there was no connection to the database for any reason.
As a result, the $ DB no connection links. And you do not see it trying to work with him.

How to decide: Check what exactly lies in $ db and make sure the handler database there

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