This is my code:
$sql = "SELECT * FROM servers;";
$result = mysqli_query($conn, $sql);
$datas = array();
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc ($result)) {
$datas[]= $row;
}
}
This is what the $datas
array looks like:
I use the following code and this is what i get:
This is what I want it to look like:
Any ideas how I can do this?