I started using functions instead of the old functions in PHP, and I'm having a bit of a problem with this code:
The code returns these 2 errors:
Warning: mysqli::prepare(): Couldn't fetch MySQL in C:UsersGregaServerapplicationincclassesAPIConnect.php on line 136
Fatal error: Call to a member function execute() on a non-object in C:UsersGregaServerapplicationincclassesAPIConnect.php on line 137
What is the reason for 'Couldn't fetch MySQL'? The database connection is correct, it works in other classes, and the query returns a valid result, if I echo it and execute it in phpMyAdmin. Also, my variable is named NOT !
View on Stack Overflow
