We don't have Quick Reply Here!<br /><br />We have this same problem on this board
here.<br /><br />This is the error when you vote:<br /><br />Warning: Variable passed to each() is not an array or object in /home/measurection/htdocs/forums/viewpoll.php on line 71<br /><br /><br /><br />This is the offtending code in viewpoll.php:<br /><br /><pre><font class="small">code:</font><hr>// Loop through the results to figure out the percentages<br /> while(list($key,$value) = each($options)) {<br /> $division = $totalvotes * 1000;<br /> $thisone = $options[$key]['1'] * 1000;<br /> if ($division) {<br /> $per = ($thisone/$division);<br /> }<br /> list($crap,$percent) = split("\.",$per);<br /> if ($percent < 10) {<br /> $percent .= "0";<br /> }<br /> $percent = substr($percent,0,2);<br /> if ($per == 1) { $percent = "100"; }<br /> $options[$key]['3'] = $percent;<br /> } <br /> $dbh -> finish_sth($sth);<br /></pre><hr><br /><br />Why doesn't it seem to like $options?<br /><br />Sometimes it works....sometimes it doesn't. I don't see a conflicting $options being used with the anchors away or quick reply mod.... <br /><br />Must be something else.