I am printing data from database using sql query, however when i get the output i am not getting it in the desired form.
Part of the code is
$result1 = mysqli_query($con,"SELECT * FROM abc where id='".$a."'");
if (mysqli_num_rows($result1) > 0)
{
while($row1 = mysqli_fetch_array($result1))
{
echo "<div class='dd' style='width:600px; padding-left:15px;'>";
echo "<div class='col-lg-3' style='font-size:medium;'>";
echo $row1['name'];
echo "</div>";
echo "</div>";
}
}
output that i am getting is
q
w
e
r
however i wish to get out in the form
q w e
r t y
u u u
would appreciate any help