i nie dodaje! DLACZEGO!
[url="http://www.php.net/mysql_query"]mysql_query[/url]("UPDATE sonda1 SET ilosc = '$ile', tak = '$tak', nie = '$nie' WHERE id = '1'");
<html> <meta HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.e-pamiec.pl/index.php"> <? $a = 1; $ip = $_POST['ip']; $query = "SELECT * FROM sonda1 WHERE id = 1"; $ile = $row['ilosc']++; If($_POST['sonda'] == 'tak') { $tak = $row['tak'] ++; $nie = $row['nie']; } else{ $nie = $row['nie'] ++; $tak = $row['tak']; } } ?> </html>
<html> <meta HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.e-pamiec.pl/index.php"> <?
<? ?> <html> <meta HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.e-pamiec.pl/index.php"> <? $a = 1; $ip = $_POST['ip']; $query = "SELECT * FROM sonda1 WHERE id = 1"; $ile = $row['ilosc']++; If($_POST['sonda'] == 'Tak') { $tak = $row['tak'] ++; $nie = $row['nie']; } else{ $nie = $row['nie'] ++; $tak = $row['tak']; } } ?> </html>