Forum Moderators: coopster
$vote= $_POST['poll'];
$results = file('fotoalbum.txt');
if ($vote=='y'){ $results[1]++; }
else { $results[0]++; }
$content = implode("\n", $results);
$fp = fopen( "fotoalbum.txt" , "w" );
fwrite($fp, $content);
fclose($fp)
but the new line \n in the implode fuction does not work, any idea what im doing wrong here...
kumar