PHP:
<?php
echo'
<div class="card mb-3">
<div class="card-header font-weight-bold">
<i class=""></i>Servers disponibili</div>
<div class="card-body">
<div class="table-responsive">
<form action="subreseller.php" method="post" id="tf"></form>
<table class="table table-bordered table-hover" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>Nome Servers</th>
<th>Id Servers</th>
</tr>
</thead>
<tfoot>
</tfoot>
<tbody>';
if ($_SESSION['type'] != "") {
$resultse = mysqli_query($con, "SELECT * FROM `servers` WHERE FIND_IN_SET(`id`,(SELECT GROUP_CONCAT( servers SEPARATOR ',') FROM `users` WHERE `name` = '$_SESSION[username]'))") or die(mysqli_error($con));
while($rowse = mysqli_fetch_assoc($resultse)) {
$result1 = mysqli_query($con, "SELECT * FROM `ssh-".$rowse["id"]."` WHERE `creatoda` = '$_SESSION[username]' ") or die(mysqli_error($con));
while($row1 = mysqli_fetch_assoc($result1))
{
echo' <form action="subreseller.php" method="post" id="f'.$rowse["id"].$row1["ssh"].'"></form>';
}
$rf = "'";
echo'<td>'.$rowse["nome"].'</td>';
echo'<td>'.$rowse["id"].'</td>';
echo'</tr>';
}
echo'
</tbody>
</table>
</div>
</div>
</div>
';
}
?>