Pleaze neví něgdo (třeba míra) jag mám volat sql aby to nedávalo chybovou hlášku ? :o))
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
ten zdroják je tady:
function connect($host,$user,$pass,$db)
{
$connection = mysql_connect($host,$user,$pass) or die("Could not connect to database!");
$select=mysql_select_db($db,$connection) or die("Could not select the database!");
return(TRUE);
}
Thanx