Passing a PHP variables to a modal window

时间:2017-07-12 08:16:53

标签: php jquery

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>";

0 个答案:

没有答案