I'm generating a table from an SQL Select statement but also adding a check box on each row so that rows can be selected, but I can't work out how to loop through each row of this generated table in order to see if the box is checked.

Is this possible?

I know how to create the table, populate it, and how to check the button, I just can't work out how to access the cell that the button is in on each row.

I can't create each check box individually as they are created along with the table when looping through the rows from my SQL SELECT