Server IP : 101.255.104.117 / Your IP : 101.255.104.117 Web Server : Apache/2.4.34 (Win32) OpenSSL/1.0.2o PHP/5.6.38 System : Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586 User : user ( 0) PHP Version : 5.6.38 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/xampp182/htdocs/repository/application/views/ |
Upload File : |
<h4><?= $judul ?></h4> <hr> <?php foreach ($data->result() as $row): ?> <?php $author1 = "SELECT * FROM authors WHERE id = '$row->id_author'"; $author2 = $this->db->query($author1)->row(); $author = $author2->author; $desc = substr($row->description, 0, 50); ?> <div class="card-index"> <a href="<?= base_url() ?>home/single/<?= $row->id ?>" class="font-weight-bold" style="margin-bottom: 1px"><?= $row->title ?></a> <p class="font-weight-light" style="margin-bottom: 1px; font-size: 14px"><?= $author ?> (<?= $row->year ?>)</p> <p class="font-weight-normal"><?= $desc ?> ...</p> </div> <?php endforeach; ?>