insert mysql data into colums

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 01:48:55 +01:00
parent 3e99bef301
commit d8e482cc48
2 changed files with 12 additions and 1 deletions

View File

@ -40,7 +40,18 @@
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "id: " . $row["id"]. " - Mac: " . $row["mac_address"]. " " . $row["universe"]. " ". $row["dmx_address"]. "<br>";
echo '''
<tr>
<th>'.$row["id"].'</th>
<th>'.$row["universe"].'</th>
<th>'.$row["dmx_address"].'</th>
<th>
<form action="./settings.php?id='.$row["mac_address"]'">
<button type="submit" class="btn btn-secondary">Configure</button>
</form>
</th>
</tr>
''';
}
}
else {

View File