I have a problem displaying the return on MySQL query into HTML Table. I've tried a lot of options but the return tables will not align, or will not get into a table. I have the following PHP code:
<?php
require_once('modules/config.php');
$cerereSQL = 'SELECT * FROM `allowed`';
$rezultat = mysqli_query($conexiune, $cerereSQL);
while($rand = mysqli_fetch_array($rezultat))
{
echo "IP: " . $rand["ip"]. "<br>
Hostname: " . $rand["host"]. "<br>
Port: " . $rand["port"]. "<br>
UserAgent: " . $rand["ua"]. "<br>
Referrer: " . $rand["ref"]. "<br>
URL: " . $rand["url"]. "<br>
Date/Time: " . $rand["dtime"]. "<br><br>";
}
?>
What can I do to return the query into a nice HTML table? Every time I tried to add into the PHP Echo function, the query will just go under the last one, even without
and aligned on middle.