The table would be a basic table with 2 columns name, total the data is generated from sql using php. What I wanna do is add a checkbox to each row and have a compare button and when you hit compare it takes the rows that you check and shows you the one with the highest total.
Basically all I need is a step in the right direction I'm pretty sure I can use ajax to get it to show on the page.
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Name</td>
<td>Total</td>
<td><input type="submit" name="Compare" id="Compare" value="Compare" /></td>
</tr>
<tr>
<td>Tom</td>
<td>15</td>
<td><input type="checkbox" name="checkbox" id="checkbox" />
<label for="checkbox"></label></td>
</tr>
<tr>
<td>Alex</td>
<td>25</td>
<td><input type="checkbox" name="checkbox2" id="checkbox2" /></td>
</tr>
</table>
This is an example the actual rows will be filled using php/sql.