Minggu, 22 Desember 2019

scrip view backend v_pelanggan read

<a href="<?php echo site_url('pelanggan/create');?>">
  <button type="button">tambah</button>
</a><br>
<table border="1" width="50%">
  <tr>
    <th>No</th>
    <th>Nama</th>
    <th>Alamat</th>
    <th>No_Tlp</th>
    <th>Email </th>
    <th>Password</th>
  </tr>
  <?php
  $no=1;
  foreach ($data->result_array() as $row) {
   ?>
  <tr>
    <td><?php echo $no ?></td>

    <td><?php echo $row['nama_pelanggan']?></td>
    <td><?php echo $row['alamat']?></td>
    <td><?php echo $row['no_tlp']?></td>
    <td><?php echo $row['email_pelanggan']?></td>
    <td><?php echo $row['pswd_pelanggan']?></td>



  </tr>
  <?php
  $no++;
  }
  ?>
</table>

0 komentar:

Posting Komentar