I have a database and I am trying to display data from the table all in one box.
I am not sure if there is another way besides tables but I am trying to do something like this.
I am using roblox as an example.
Right now this is my code for the table.
<div class="row2">
<div class="column">
<?php
include_once("includes/config.php");
$sql = "SELECT * FROM communities";
$result = $conn->query($sql);
if ($result->num_rows > 1) {
while($row = $result->fetch_assoc()) {
echo '<hr />';
echo '<table>';
echo '<tr><td>Name: </td><td>'.$row["name"].'</td></tr>';
echo '<tr><td>Discription:</td><td>'.$row["description"].'</td></tr>';
echo '<tr><td></td><td><img src="'.$row["logo"].'" width="100px" /></td></tr>';
echo '</table>';
echo '<button name="button">Join</button>';
echo '<hr />';
}
}
?>
</div>
`? – Kunal Raut May 08 '20 at 14:45
not
– Kunal Raut May 08 '20 at 14:50
. The slash is not needed but it is no fault and it was rude to ask this question and not help Devin with his problem ... Devin Henrickson: You can change each table into a DIV-construct. But what is your concrete question and where are you stuck? – Melvin May 08 '20 at 15:27