Skip to content

Instantly share code, notes, and snippets.

@anjanawijesundara
Last active August 29, 2015 14:19
Getting Start with Codeigniter by creating a CRUD application [index.php- view page]
<h2><?php echo $title; ?></h2>
<div>
<table>
<thead>
<tr>
<th>Username</th>
<th>Full Name</th>
<th>Email</th>
<th>View</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<?php foreach ($customers as $cus ) : ?>
<tr>
<td><?php echo $cus['username'];?></td>
<td><?php echo $cus['full_name'];?></td>
<td><?php echo $cus['email'];?></td>
<td><a href="view/<?php echo $cus['username'] ?>">view</a></td>
<td><a href="edit/<?php echo $cus['username'] ?>">Edit</a></td>
<td><a href="delete/<?php echo $cus['username'] ?>">Delete</a></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment