это мой текущий код.
include "dbConnect.php";
$std_ID = $_SESSION['suser']['std_ID'];
$query = $DBcon->prepare("SELECT * FROM `blog` WHERE `sender_B`='$std_ID' ");
$query->execute();
$result=$query->get_result();
if($result->num_rows > 0){
while($row = $result->fetch_assoc()){
$ID = $row['blog_ID']
?>
<div class="alert alert-danger" role="alert">
<div class="main">
<h2>ID</h2>
<h5><?= $row['blog_ID']?></h5>
<h2>TITLE</h2>
<h5><?= $row['title']?></h5>
<h2>Description</h2>
<h5><?= $row['description']?></h5>
<h2>std_ID</h2>
<h5><?= $row['sender_B']?></h5>
<h5><a href="view&commentBlog.php?ID=<?= "$ID"?>" class='btn btn-info'>View Details</a></h5>
</div>
</div>
<?php
}
}
else{
?>
<p>No blog(s) found...</p>
<?php } ?>
результат после зацикливания
<1st box>
ID
Title
Description
student_ID
<end of 1st box>
<2nd box>
ID
Title
Description
student_ID
<end of 2nd box>
результат, который мне нужен, после отображения 1-го поля, go вправо, чтобы отобразить 2-й блок, а затем перейти к другой строке и продолжить ...
<1st box> <2nd box>
ID ID
Title Title
Description Description
student_ID student_ID
<end of 1st box> <end of 2nd box>
<3rd box> <4th box>
ID ID
Title Title
Description Description
student_ID student_ID
<end of 3rd box> <end of 4th box>
ТАК, есть ли и какие способы отображения ?? ТНХ.