Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- ?><!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Welcome to CodeIgniter</title>
- <style>
- table, th, td {
- border: 1px solid black;
- border-collapse: collapse;
- }
- th, td {
- padding: 15px;
- }
- </style>
- </head>
- <body>
- <div id="container">
- <h1>Welcome to CodeIgniter!</h1>
- <a href="<?php echo base_url()?>index.php/welcome/add" >tambah</a>
- <br>
- <?php if ($this->session->flashdata('sukses')) {
- echo $this->session->flashdata('sukses');
- }
- ?>
- <div id="body">
- <table>
- <tr>
- <th>nama </th>
- <th>umur</th>
- <th>telpn</th>
- <th>alamat</th>
- </tr>
- <tbody>
- <?php foreach ($member as $key ) {?>
- <tr>
- <th><?php echo $key->nama_depan;?> <?php echo $key->nama_belakang;?></th>
- <th><?php echo $key->umur;?></th>
- <th><?php echo $key->tlpn;?></th>
- <th><?php echo $key->alamat;?></th>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- <p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
- </div>
- <p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement