Help for this page

Select Code to Download


  1. or download this
     for (@info) {
      my %data;
      my $sth = $obj->DBI->Replies->sql_count;
    ...
      $data{count} = $r;
      push @loop_data, \%data;
      }
    
  2. or download this
    SELECT COUNT(*) from __TABLE__ where 
      thread_id=?
    
  3. or download this
     #get the reply count...
      my $sth2 = $dbh->prepare(q{ select count(*) from dh_replies where th
    +read_id=?});
    ...
      my $count = $sth2->fetchrow_array;
      push @$rows_data, { count => $count };
      }
    
  4. or download this
    ### get replies
        ### use each $row's id as the argument passed to execute and retri
    +eve
    ...
        $data{'count'}   = $count;
        push @rows_data, \%data;
      }