my ($id, $username); my $sth = $dbh->prepare_cached(<execute(); $sth->bind_columns(undef, \$id, \$username); #category queries my ($count); my $sthx = $dbh->prepare_cached(<prepare_cached(<prepare_cached(<prepare_cached(<prepare_cached(< 5 SQL my ($count_w); my $sthw = $dbh->prepare_cached(< 0 SQL # while $sth->fetch() { $sthx->execute($id); $sthx->bind_columns(undef, \$count); $sthx->fetch(); print "$count"; $sthv->execute($id); $sthv->bind_columns(undef, \$count_v); $sthv->fetch(); print "$count_v"; #etc...etc.. until all sth's are executed. #going to add a limit to the # of members to fetch, perhaps #100 members a page....if thats the case: # #1 select query to fetch all 100 member id's. #6 selects for each member, x 100 members so 600 queries to #print out the table full of values. #total to 601 select queries }

Thanks, Bobby