I have this code that prints a value horizontally and I want it to be printed as a nxn matrix, here my code:
<?php
include('config.php');
$sq2 = "SELECT * FROM acarga WHERE bl3 = '1' ";
$result3 = mysqli_query($connex, $sq2);
while($row2 = mysqli_fetch_assoc($result3))
$test = $row2['bl3'];
echo $test ;
}
?>