Code for product reviews

Hi all, i have created a product reviews feature with star ratings etc. However, im having trouble getting the correct reviews to display on each product. At the moment, if there are 5 reviews for 5 different products, they all appear on the same product page instead of showing up for each specific product. The code im using seems to be the correct code but its not working.

Can i paste the code here for someone to review it? I tried previously but my posts were deleted for some reason.