Hey there
I want to retrieve images that will be uploaded from one file(into DB) and place them into a photo gallery. Here is my code:
<div class="py-5">
<?php
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$mysqli = new mysqli("db5004526329.hosting-data.io", "dbu1026002", "meka%1981", "dbs3781610");
$query = "SELECT image FROM tbl_member ORDER BY ID DESC";
$result = $mysqli->query($query);
while($row = $result->fetch_array(MYSQLI_ASSOC) ) {
printf("%s (%s)\n", $row["image"]);
?>
<div class="container">
<div class="row hidden-md-up">
<div class="col-md-4">
<div class="card">
<div class="card-block">
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-block">
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-block">
</div>
</div>
</div>
</div><br>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-block">
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-block">
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
</div>
</div>
</div>
</div>
</div>
<?PHP
}
?>
Is this correct…want to make sure?
Thank ya