00001 00002 <?php 00003 // The set of function for database interconnection 00004 00005 function connectToServer ($server, $username, $password) 00006 { 00007 return @mysql_connect ($server, $username, $password); 00008 } 00009 00010 function openDB ($bd, $id) 00011 { 00012 return @mysql_select_db ($bd, $id); 00013 } 00014 00015 function closeDB ($id) 00016 { 00017 return @mysql_close ($id); 00018 } 00019 ?>