I’ll have a proper crawl over all the code tomorrow and get a new version uploaded. I need to reassess the way I’m counting records returned via the modX->db->select() as I don’t think my way is working!
$rs = $modx->db->select("*",$polltable,$where,"id ASC","");
$limit = count($rs);
if($limit > 0){
$fields = $modx->db->getRow($rs);
}
$rs = $modx->db->select("*",$polltable,$where,"id ASC","");
$limit = $modx->db->getRecordCount($rs);
if($limit > 0){
$fields = $modx->db->getRow($rs);
}
* 26/01/06: New zip uploaded containing bug fixes for both snippets relating to the display of choices.

for($i=0; $i<=$limit2; $i++) {
for($i=0; $i<$limit2; $i++) {

This discussion is closed to further replies. Keep calm and carry on.