“Codeigniter 4 Limit Query” Kode Jawaban

Codeigniter 4 Limit Query

// codeigniter 4 limit query
// getting data from model 

$data['dataName'] = $account->where('role', 'User')->orderBy('created_at', 'DESC')->limit(5)->find();
IamPseudoX

Codeigniter 4 Limit Query

// codeigniter 4 limit query displaying data
 <ul class="products-list product-list-in-box">
     <?php foreach ($dataName as  $dataNames) : ?>
        <li class="item">
          <div class="data-img"> <img src="/uploads/<?= $dataNames['img'] ?>" alt="Data Image"> </div>
           <div class="data-info"> <a href="#" class="product-title"><?= $dataNames['first_name'] . " " . $topsellers['last_name'] ?>
             </a> <span class="data-description"> <a href="#"><?= $dataNames['email'] ?></a> 
          </span>
      </div>
    </li>
 <?php endforeach; ?>
</ul>
IamPseudoX

Jawaban yang mirip dengan “Codeigniter 4 Limit Query”

Pertanyaan yang mirip dengan “Codeigniter 4 Limit Query”

Lebih banyak jawaban terkait untuk “Codeigniter 4 Limit Query” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya