When I read tutorials about using mysql, they always say to end the script by closing the database. Is there a reason for this? I assume it has something to do with security issues, but when I close the db it turns into a headache trying to figure out where I need to start the connection again (I’m new to this obviously).
I’ve searched for an answer to this online, but can’t find one.