Last active
August 29, 2015 14:19
Getting Start with Codeigniter by creating a CRUD application [index.php- view page]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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