Here is the code:

$ql = $sql->fetch("*","test","'text'='text'"); 

Here is the error:

Fatal error: Calling on a member in X: \ home \ game \ www \ index.php on line 3

  • Give the code for the fetch method of the sql class - DemoS

2 answers 2

Well, in principle, it is clearly written. The 3rd line is not an object . And for whatever reason, there is no object there that said piece of code will not say anything.

    Most likely you have your own class with this function.
    Therefore, it is unlikely that someone will say something about this.
    I can say that there is no standard function fetch () in PHP.