View Single Post
  #11 (permalink)  
Old 03-01-08, 06:37
Christina Christina is offline
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Default

Once the Database will be closed the script ends automatically. To close the connection before, use the mysql_close() function.

HTML Code:
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// some code

mysql_close($con);
?>
Reply With Quote