Looks like the bracketing is wrong in that line:
Code:
$getTotalHosts = mysql_query("SELECT * FROM mirror
WHERE uid = '$file_id'" or die(mysql_error());
It should be:
Code:
$getTotalHosts = mysql_query("SELECT * FROM mirror
WHERE uid = '$file_id'") or die(mysql_error());
The following line also looks wrong:
Code:
$getCompleteHosts = mysql_query("SELECT * FROM mirror
WHERE uid = '$file_id'" and status in (2,3) or die(mysql_error());
Shouldn't it be:
Code:
$getCompleteHosts = mysql_query("SELECT * FROM mirror
WHERE uid = '$file_id' and status in (2,3)") or die(mysql_error());
It also helps if you print out the sql in your die statement.
Mike