Warning: Too many connections in /usr/local/psa/home/vhosts/fivesevenzero.com/httpdocs/home/news.php on line 46
Warning: MySQL Connection Failed: Too many connections in /usr/local/psa/home/vhosts/fivesevenzero.com/httpdocs/home/news.php on line 46
Unable to connect!
this is my code for the script if curious...
include("../admin/news/conf.php");
include("../admin/news/functions.php");
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
mysql_select_db($db) or die ("Unable to select database!");
$query = "SELECT id, title, brief, timestamp FROM news ORDER BY timestamp DESC LIMIT 0, 3";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
if (mysql_num_rows($result) > 0)
{
while($row = mysql_fetch_object($result))
{
then the normal if else and close connection code...