Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include( 'core.php' );
- ob_end_flush();
- $sql = 'SELECT DISTINCT reporter_id FROM mantis_bugnote_table WHERE bug_id = ' . db_param();
- $r = db_query_bound( $sql, array( 1 ) );
- echo "query results (". $r->RecordCount() . " records)\n";
- print_r($r->Getarray());
- echo "simplified NEXT code with endless loop protection\n";
- $i = 0;
- for( $i = 0;$i < $r->RecordCount();$i++ ) {
- $t_user_id = db_result( $r, $i );
- echo "$i $t_user_id\n";
- }
- //while( ( $t_user_id = db_result( $r ) ) && ( $i < $r->RecordCount() ) ) {
- // echo "$t_user_id\n";
- // //$i++;
- // echo $i;
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement