I have a table with data being displayed using a php foreach loop. I have successfully linked the Client_Code to a modal window, but I would like to somehow grab the the data for the client linked to that client code and then use that data in the modal window.
My loop looks like this
"<tr>
<td><a class='btn btn-outline-primary' data-toggle='modal' data-target='#large'>" . $rows['Client_Code'] . " </td></a>
<td>" . $rows['firstname'] . " " . $rows['lastname'] . "</td>
<td>" . $rows['Service_Name'] . "</td>
<td>" . $rows['billingemail'] . "</td>
<td>" . $rows['Business_Name'] . "</td>
</tr>";