Close database connections : Database Connection « MySQL Database « PHP






Close database connections

<?php
   @mysql_connect("mysql153.secureserver.net","java2s","password") or die("Could not connect to MySQL server!");

   @mysql_select_db("java2s") or die("Could not select database!");

   echo "You're connected to a MySQL database!";

   mysql_close();

?>


           
       








Related examples in the same category

1.PHP code to establish a connection with MySQL