Skipping the first tD while displaying the query result with a loop in a table
X X does someting
Y Y does someting
Z Z does someting
I want to display the result of this query in a table which is shown below, I can get to show the results with a loop or through explicitly calling the query as getNamesandRoles.displayName[1] and so on, but I can figure out how to loop thru the query in a way that would skip the first row where the ID (i.e. all the scope="row") and populate the data in the other two Td's dynamically so that it we have more users it creates those TD's related to the ID. Can i accomplish this ?
<thead>
<tr>
<th scope="col">SomeroleID</th>
<th scope="col">First</th>
<th scope="col">Last</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">RoleFunction</th>
<td>X</td>
<td>X does someting</td>
</tr>
<tr>
<th scope="row">RoleFunction1</th>
<td>Y</td>
<td>Y does someting </td>
</tr>
<tr>
<th scope="row">RoleFunction</th>
<td>z</td>
<td>Z does someting </td>
</tr>
</tbody>
</table>
