Advertisement
Guest User

Untitled

a guest
Aug 6th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2. include( 'core.php' );
  3. ob_end_flush();
  4. $sql = 'SELECT DISTINCT reporter_id FROM mantis_bugnote_table WHERE bug_id = ' . db_param();
  5. $r = db_query_bound( $sql, array( 1 ) );
  6. echo "query results (". $r->RecordCount() . " records)\n";
  7. print_r($r->Getarray());
  8. echo "simplified NEXT code with endless loop protection\n";
  9. $i = 0;
  10.  
  11. for( $i = 0;$i < $r->RecordCount();$i++ ) {
  12. $t_user_id = db_result( $r, $i );
  13. echo "$i $t_user_id\n";
  14. }
  15. //while( ( $t_user_id = db_result( $r ) ) && ( $i < $r->RecordCount() ) ) {
  16. // echo "$t_user_id\n";
  17. // //$i++;
  18. // echo $i;
  19. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement