odbc_close_all() will close down all connections to database server(s).
This function will fail if there are open transactions on a connection. This connection will remain open in this case.
<?php //connect to database three times $Connection1 = odbc_connect("inventory", "guest", "guest"); $Connection2 = odbc_connect("inventory", "guest", "guest"); $Connection3 = odbc_connect("inventory", "guest", "guest"); //close all the connections odbc_close_all(); ?>