In PHP + MySQL
This is:
$conn = mysql_connect("server","user","pass");
mysql_select_db("datbasename");
what we do to open a connection.
And this is:
mysql_close($conn);
what we do to close the connection.
- WHAT if we don’t close the connections? What are going to be the effects?
- After what CONDITION the opened connections are automatically closed?
From the PHP documentation for mysql_close: