Changeset 4 for trunk/Vote/lib/Vote/Model/Vote.pm
- Timestamp:
- 03/05/09 23:03:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Vote/lib/Vote/Model/Vote.pm
r3 r4 110 110 } 111 111 112 sub vote_choices { 113 my ($self, $id) = @_; 114 115 my $sth = $self->db->prepare_cached( 116 q{ 117 select * from choice where poll = ? 118 order by label 119 } 120 ); 121 $sth->execute($id); 122 my @ch; 123 while (my $res = $sth->fetchrow_hashref) { 124 push(@ch, $res); 125 } 126 @ch 127 } 128 112 129 =head1 AUTHOR 113 130
Note: See TracChangeset
for help on using the changeset viewer.