You could simply change your query instead to return top five rows.
SELECT * FROM shop_product LIMIT 0,5
(or)
If you don't prefer the above solution, you could use array_slice()
to get a portion of the array..
while($fetchResult = mysql_fetch_array($result,MYSQL_ASSOC)){
$resultSet[] = $fetchResult;
}
$fiverowsarray = array_slice($resultSet, 0 , 5); //<--- You can add like this..