database get connected successfully....but... here is my code
<?php
$host = 'localhost';
$user = 'root';
$pass = '';
$db = 'databasename';
mysql_connect($host, $user, $pass) or die ("Database Not Connected");
mysql_select_db($db) or die ("Database Not Fount");
?>
but the database is regularly disconnecting and connecting after 30-40 minutes....please help me, that what's going on.....