this will require some rearranging of the code.
first, instead of using the $_GET['ItemID'] as the run time value for the varItem parameter, you need to use the ItemID from the main recordset $row_rsItems['ItemID']
Second, the code for the rsSizes recordset needs to be moved so that it is inside the repeat region.