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
Post a Comment