Macie kawałek kodu:
<?php foreach($takips As $ip) { if($ip != $_SERVER['REMOTE_ADDR'] && $ip != \"END\") { continue; } if($ip == $_SERVER['REMOTE_ADDR']) { $suma = $taken[0] + $taken[1] + $taken[2]; echo \"<table width=147 height=131 cellpadding=0 cellspacing=0 background=9.gif class=sonda><tr><td width=100% class=lightbut colspan=2>Wyniki>/td></tr> <tr><td class=lightbut width=75%>\" . $answs[0] . \"</td><td class=lightbut width=25%>\" . $vot0 . \"%</td></tr> <tr><td class=lightbut width=75%>\" . $answs[1] . \"</td><td class=lightbut width=25%>\" . $vot1 . \"%</td></tr> <tr><td class=lightbut width=75%>\" . $answs[2] . \"</td><td class=lightbut width=25%>\" . $vot2 . \"%</td></tr></table>\"; } } ?>
a tu macie plik ips.dat, z ktorego odczytywane sa IP...
Kod
82.160.49.131|82.160.49.131|END
Chodzi o to, ze warunek $ip == $_SERVER['REMOTE_ADDR'] nie chce się spełnić i skrypt wyświetla ponownie formularz głosowania.....
Z góry dzięki za pomoc....