You can try something like this:
<?php
$counter = 0;
while($score = $highscore->fetch_array())
{
$counter++;
//Your content
if ( $counter >= 100 ) {
break;
}
}
This should break your while when it reaches 100.