İyi Akşamlar Kolay Gelsin...

R10 da araştırdım ama bulamadım bir türlü sizden yardım istiyorum...
Aşağıdaki kodlamada 2 seçenek olarak anketi yaptım ama bir türlü çoğaltmasını yapamadım 3 seçenek yada 4 seçenek yaptıgımda biryerlerde hata olusuyo ama çözemedim. Bana yardımcı olursanız sevinirim.. Simdiden cok tsk ederim..

<?php
$vote = $_REQUEST['vote'];

//get content of textfile
$filename = "poll_result.txt";
$content = file($filename);

//put content in array
$array = explode("||", $content[0]);
$yes = $array[0];
$no = $array[1];
$ul = $array[2];
$li = $array[3];

if ($vote == 0)
  {
  $yes = $yes + 1;
  }
if ($vote == 1)
  {
  $no = $no + 1;
  }
  if ($vote == 2)
  {
  $ul = $ul + 2;
  }
if ($vote == 3)
  {
  $li = $li + 3;
  }

//insert votes to txt file
$insertvote = $yes."||"$no."||"$ul."||".$li;
$fp = fopen($filename,"w");
fputs($fp,$insertvote);
fclose($fp);
?>
<style type="text/css">
<!--
.style7 {font-family: "Trebuchet MS"; font-size: 12px; color: #000000; font-weight: bold; }
-->
</style>


<h2>Result:</h2>
<table width="230">
<tr>
<td width="85"><span class="style7">Yakıtına</span></td>
<td width="129">
  <span class="style7"><img src="poll.gif"
width='<?php echo(100*round($yes/($no+$yes+$ul+$li),2)); ?>'
height='20'>
  <?php echo(100*round($yes/($no+$yes+$ul+$li),2)); ?>%</span></td>
</tr>
<tr>
<td><span class="style7">Özelliklerine</span></td>
<td>
  <span class="style7"><img src="poll.gif"
width='<?php echo(100*round($no/($no+$yes+$ul+$li)),2)); ?>'
height='20'>
  <?php echo(100*round($no/($no+$yes+$ul+$li)),2)); ?>%  </span></td>
</tr>
<tr>
  <td class="style7">Hızlı Olmasına</td>
  <td width="129"><span class="style7"><img src="poll.gif"
width='<?php echo(100*round($ul/($no+$yes+$ul+$li),2)); ?>'
height='20'> <?php echo(100*round($ul/($no+$yes+$ul+$li),2)); ?>%</span></td>
</tr>
<tr>
  <td class="style7">Tasarımına</td>
  <td><span class="style7"><img src="poll.gif"
width='<?php echo(100*round($li/($no+$yes+$ul+$li)),2)); ?>'
height='20'> <?php echo(100*round($li/($no+$yes+$ul+$li)),2)); ?>% </span></td>
</tr>
</table>