fetch data from mysql database and 1st one success but this one not showing already included connection
waiting an answer
index.php
<div class="container-fluid service py-5">
<div class="container py-5">
<div class="row g-4 justify-content-center">
<?php
$promo1_rs = Database::search("SELECT * FROM `promo_1` ");
$promo1_num = $promo1_rs->num_rows;
for ($t = 0; $t < $product_num; $t++) {
$promo1_data = $promo1_rs->fetch_assoc();
?>
<div class="col-md-6 col-lg-4">
<a href="#">
<div class="service-item bg-secondary rounded border border-secondary">
<img src="" class="img-fluid rounded-top w-100"
alt="">
<div class="px-4 rounded-bottom">
<div class="service-content bg-primary text-center p-4 rounded">
<h5 class="text-white"><?php echo $promo1_data["title"]; ?></h5>
<h3 class="mb-0"><?php echo $promo1_data["promo_title"]; ?></h3>
</div>
</div>
</div>
</a>
</div>
<?php } ?>
</div>
</div>
</div>
Connection Included