search

Home  >  Q&A  >  body text

mysqli_query() in different php directories: Couldn't fetch mysqli

I encountered a very confusing problem. There is nothing wrong with the MYSQLI connection.

/index.php //Execute mysqli update successfully

/admin/index.php //Execute mysqli update failed

And the database configuration file is in /core/database. php

##----

How to solve this problem?

Warning: mysqli_query(): Couldn't fetch mysqli in D:\wwwroot\admin\index.php on line 14

nullnull1726 days ago1317

reply all(0)I'll reply

No reply
  • Cancelreply