Page 1 of 1

mysql_connect() error???

Posted: Mon Mar 27, 2006 10:47 pm
by JellyFish
Warning: mysql_connect(): Lost connection to MySQL server during query in /home/www/figaro.awardspace.com/linkcounter.php on line 2
Lost connection to MySQL server during query
I keep getting that error. I don't know what It means but hopfully someone knows on this forum.


Code: Select all

<? 
$connection = mysql_connect("70.86.229.146", "figaro_figaro", "password") or die(mysql_error()); 
$sql = "INSERT INTO linkcount (from, date) VALUES ('$_GET[from]', ' ')"; 
$result = mysql_query($sql, $connection) or die(mysql_error()); 
?> 
<html> 
<head> 
<meta http-equiv="refresh" content="1; url=http://www.arcadeground.com/?page=liquid" /> 
</head> 
</html>

Thanks and all help is appreciated.

Posted: Mon Mar 27, 2006 11:10 pm
by feyd

Posted: Tue Mar 28, 2006 5:13 am
by NeoNmaN
try this

Code: Select all

mysql_connect("host", "user", "pass"); 
mysql_select_db("database");


$sql = "INSERT INTO linkcount (from, date) VALUES ('$_GET[from]', ' ')";  
$result = mysql_query($sql);
i hob ist help you :)

and the next time you post DONT post the password, host and username to you mysql... ist relly risk for you self.

pm: if ist dont work soe i maby can help you agin :)