php - Closing MySQL Database Connections and Instances -


i have 3 consecutive php files, 1 shows results database fetch query, 1 inserts data database , 1 updates data. first php file goes second , second goes third. share same database connection , database. in first 1 write $db = database::getinstance(); $mysqli = $db->getconnection(); should close database connection mysqli_close($mysqli); on every file??? think should closed on third file only. let me know.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -