search

Home  >  Q&A  >  body text

Does mysqli_close basically need to be added to every file?

New to mysqli, I would like to ask if there are two files.

One is an article query file and the other is an editing file. Both files require mysqli_query.

Does mysqli_close() need to be added to the bottom of these two files?

顾及顾及1727 days ago1109

reply all(2)I'll reply

  • Guanhui

    Guanhui2020-05-04 10:11:33

    You can encapsulate database operations for unified calling and management

    reply
    1
  • Guanhui

    Guanhui2020-05-04 10:10:38

    Yes, add

    reply
    0
  • Cancelreply