Hi there I am having an error when i tried to run the script below i.e. Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in line 3 can anyone help me please because i dont have any idea whats wrong with my script
<?
$sql = "select 1 from temp limit 1";
$check = mysql_query($sql);
$temp = mysql_result($check,0,0);
if ($temp == 0)
{
for ($i=0;$i<sizeof($Sport);$i++)
{
if (isset($Sport[$i]))
{
$query = "CREATE TEMPORARY TABLE IF NOT EXISTS temp
SELECT * FROM unisport WHERE SportID = '$Sport[$i]'";
$result = mysql_query($query);
}
?>