Ignore:
Timestamp:
2006/12/13 10:34:52 (19 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php

    r826 r827  
    135135            $ret[] = $myrow; 
    136136        } 
     137        $sql = "SELECT count(*) as count FROM ".$db->prefix("xoopspoll_log")." l LEFT JOIN ". $db->prefix("users") ." u  ON l.user_id = u.uid WHERE l.option_id=".intval($option_id)." ORDER BY time DESC  LIMIT $limit_start, $limit_end"; 
     138        $result = $db->query($sql); 
     139        $myrow = $db->fetchArray($result); 
     140         
     141        $ret['count'] = $myrow['count']; 
     142         
    137143        //echo $sql; 
    138144        return $ret; 
Note: See TracChangeset for help on using the changeset viewer.