Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Close database connections in php

Sun Oct 26, 2008 7:04 pm

Close database connections in php
Code:

<?php
   
@mysql_connect("host","root","password") or die("Could not connect to MySQL server!");

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

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

   
mysql_close();

?>




Post a reply
  Related Posts  to : Close database connections in php
 Remote EJb Connections     -  
 Close a file in php     -  
 open/close new window using javascript     -  
 HTTP POST msg connection close problem     -  
 2 different database     -  
 database connection     -  
 List all database in php     -  
 information about database     -  
 Selecting a Database in php     -  
 Creating a Database in MySQL     -  

Topic Tags

PHP Database