ok

Mini Shell

Direktori : /home2/selectio/www/wedding-info-new/list/
Upload File :
Current File : /home2/selectio/www/wedding-info-new/list/scroll.php

 

 <?php
error_log('append section');
        include '../api/config/config.php';

$query1 = "SELECT * FROM tbl_seller_product_img WHERE product_id = 0";
$prepared3 = $pdo->prepare($query1);

if ($prepared3->execute()) {
    $result2 = $prepared3->fetchAll(PDO::FETCH_ASSOC);
    $pic_row = $prepared3->rowCount();
    error_log($query1);
} else {
    error_log('Error executing query: ' . print_r($prepared3->errorInfo(), true));
}

// Now you can use $result2 and $pic_row as needed in the rest of your code.
?>

   <!-- category start -->
   <div class="row" >

       <div class="col-12" >
                      <img   id='product_profile'  style="width: 100%; object-fit: containover; object-fit: cover; height: 300px;"  src="<?=$result2[0]['image']?>" class="img-fluid" alt="" />
       </div>
   </div>
   <section class="category-section top-space">
     <ul class="category-slide">
           <?php foreach ($result2 as $pic) { ?>

       <li>
         <a class="category-box">
           <img  id='<?=$pic['id']?>'  onClick=pic_change('<?=$pic['id']?>','<?=$pic['image']?>')  style="height: 90px;object-fit: cover;"  src="<?=$pic['image']?>" class="img-fluid" alt="" />
         </a>
       </li>
       <?php } ?>
       <li>
                <button type="button" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#all_images"> All Images</button>     
       </li>
     </ul>
   </section>
   <!-- Button trigger modal -->


<!-- Modal -->

   <div class="divider t-12 b-20"></div>
   <!-- category end -->

Zerion Mini Shell 1.0