This following code is playing up, there are MANY errors, but i cant see any of them. Here lines 80-115
CODE
if ($_POST['vote'] != 1, 2, 3, 4, 5) {
echo "Thats a no go polly...";
} else {
$newrateing = $output['rating'] + $_POST['vote'];
$newpeople = $output['voters'] + 1;
$votesystem1 = "UPDATE downloads_db SET rating={$newrateing} WHERE id={$fid}";
$votesystem2 = "UPDATE downloads_db SET voters={$newpeople} WHERE id={$fid}";
mysql_query($votesystem1);
mysql_query($votesystem2);
$handle = fopen("data/ratings_ip_list.txt", 'a');
$filestring = "[{$fid} {$_SERVER['REMOTE_ADDR']}]
ip=\"$_SERVER['REMOTE_ADDR']\"
id=\"{$fid}\"
";
fwrite($handle, $filestring);
?>
<table width="725" border="2" align="center" cellpadding="2" cellspacing="1" bgcolor="#C0E7FF">
<tr>
<td width="569" align="left" valign="top" background="images/dl_bg.jpg">Your Vote has been counted, click continue to return to the download </td>
<td width="137" align="right" valign="middle" background="images/dl_bg.jpg"><form action="" method="post"><input type="hidden" name="used" value="true"><input name="Continue" type="submit" value="Continue">
</form> </td>
</tr>
</table>
<?
} else {
?>
<table border="2" align="center" cellpadding="2" cellspacing="1" width="725" bgcolor="#C0E7FF">
<tr>
<td align="left" valign="top" background="images/dl_bg.jpg">
<? echo $output['name']; ?>
</td>
<td align="right" valign="middle" background="images/dl_bg.jpg">
<img src="images/f_icons/<? echo $output['f_icon']; ?>" alt="<? echo $output['f_type']; ?>">
</td>
</tr>
<tr>
Please can you help me.