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