Call the function $this-> _db-> Query ($SQL), PHP Fatal error: Call to a member function query() on a non-object in.
At first I thought this function would not work, but later I found out that it was myself $this-> _DB does not exist.
My problem is that static variables are called directly within the class using $DBNAME,
It should be self: : DBNAME
I’ve sorted this out before, but I can’t remember it…
At first I thought this function would not work, but later I found out that it was myself $this-> _DB does not exist.
My problem is that static variables are called directly within the class using $DBNAME,
It should be self: : DBNAME
I’ve sorted this out before, but I can’t remember it…
Read More:
- Fatal error: Call to a member function bind_param() on a non-object in
- [Qt] error: call to non-static member function without an object argument
- 【ERROR_2】Call to a member function bind_param() on a non-object
- Call to a member function fetch_assoc() on a non-object
- call to member function bind_param() on boolean………..
- PHP connection PostgreSQL error call to undefined function PG_ connect()
- PHP error: call to undefined function curl_ init() window
- PHP connection to MySQL database error: call to undefined function MySQL_ connect()
- error: invalid use of non-static member function
- Fatal error: Uncaught Error: Call to undefined function mysql_ Connect() problem solving
- [C + +] C + + overload operator = must be a nonstatic member function?
- Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- PHP:Fatal error: Class ‘COM’ not found in … How to deal with the problem
- PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[08004] [1040] Too many connections
- PHP – PHP Error[2]: Error while sending QUERY packet. PID=*
- Solution of Greenplum query calling function error
- PHP Fatal error: Uncaught Error: Class ‘\Elasticsearch\Serializers\SmartSerializer‘ not found in /h
- A call to an OS function failed
- PHP in Windows combined with bat batch processing to achieve multi process verification proxy server function
- Fatal error in PHP project: class’ redis’ not found