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

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

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -