我是编程的新手。我在table.i中有客户列表。我想用每个客户的数据库凭据创建个人资料页面。那么如何才能使名称可点击以便他们的个人资料页面打开(在codeigniter中)。这是我的桌子......
<table>
<thead>
<tr>
<th scope="col">S/N</th>
<th scope="col">Customer Name</th>
<th scope="col">Customer Email</th>
<th scope="col">Customer Country</th>
<th scope="col">Customer City</th>
<th scope="col">Customer Address</th>
<th scope="col">Customer Contact</th>
<th scope="col">Customer Image</th>
<th scope="col">Modify</th>
</tr>
</thead>
<tbody>
<?php $i = 1;?>
<?php if($customer->num_rows()>0):?>
<?php foreach($customer->result() as $rows):?>
<tr>
<td><?php echo $i;?></td>
<td><a href="<?php base_url();?>admin/customer/profile"<?php echo $rows->customer_name;?><a></td>
<td><?php echo $rows->customer_email;?></td>
<td><?php echo $rows->customer_country;?></td>
<td><?php echo $rows->customer_city;?></td>
<td><?php echo $rows->customer_address;?></td>
<td><?php echo $rows->customer_contact;?></td>
<td><img id="img" src="<?php echo base_url();?>customer/<?php echo $rows->customer_image;?>" width="30px" height="30px"/></td>
<td>
<a href="<?php echo base_url();?>admin/customer/edit/<?php echo $rows->customer_id;?>" class="table-icon edit" title="Edit"></a>
<a href="<?php echo base_url();?>admin/customer/delete/<?php echo $rows->customer_id;?>" class="table-icon delete" title="Delete" onclick="return confirm('Are you sure . You want to delete')"></a>
</td>
</tr>
<?php $i++;?>
<?php endforeach;?>
<?php endif;?>
</tbody>
</table>