P粉5217482112023-08-25 22:19:02
When you are finished using the connection on this page, please close the connection. For example, if you have a blog, the button for publishing the blog will start the code that opens the connection, does something with the connection (such as adding it to the database or displaying it on the page), and then it closes the connection , so that it doesn't stay open longer than it needs to. However, when you click the button again, it will start the process over, using the resource only when needed.
P粉3365367062023-08-25 18:36:36
Quoted from the php.net website.
Source: http://php.net/manual/en/mysqli.close .php