Thanks for your vote!
'.$value['text'].' | '.$value['count'].' | '; } ?>
Micro Polling System 1.0
0){ $answers[$count]['text'] = $answerData[0]; $answers[$count]['count'] = $answerData[1]; ++$count; } } } function writeData(){ global $pollQuestion,$answers; $file = fopen('polldata.txt','w'); fwrite($file,$pollQuestion."\r\n",strlen($pollQuestion)); foreach ($answers as $value) { $row = $value['text'].':'.$value['count']."\r\n"; fwrite($file,$row,strlen($row)); } fclose($file); } readData(); ?>
'.$value['text'].' | '.$value['count'].' | '; } ?>