<div align="right">
<form method="post" action="<?php echo base_url();?>index.php/abc/search">
<input type="text" name="search" required placeholder="Only Username Allowed">
<input type="submit" value="Search">
</form>
</div>
<a href="<?php echo base_url();?>index.php/abc">Insert</a>
<div align="center">
<table border="1" style="background-color:#">
<tr>
<td>Id</td>
<td>Username</td>
<td>Password</td>
<td>Address</td>
<td>Contact</td>
<td>Email</td>
<td>Image</td>
<td>gender</td>
<td>city</td>
<td>hobby</td>
<td>Delete</td>
<td>Update</td>
</tr>
<?php
if($result)
{
$no=1;
foreach($result as $row)
{
?>
<tr>
<td><?php echo $no; $row->signup_id;?></td>
<td><?php echo $row->username;?></td>
<td><?php echo $row->password;?></td>
<td><?php echo $row->address?></td>
<td><?php echo $row->contact;?></td>
<td><?php echo $row->email;?></td>
<td><img src="<?php echo base_url();?>upload/<?php echo $row->image;?>" width="50" height="50" title="<?php echo $row->image;?>"/></td>
<td><?php echo $row->gender;?></td>
<td><?php echo $row->city;?></td>
<td><?php echo $row->hobby;?></td>
<td><a href="<?php echo base_url();?>index.php/abc/delete/<?php echo $row->signup_id;?>" onClick="return confirm('Delete')">Delete</a></td>
<td><a href="<?php echo base_url();?>index.php/abc/edit/<?php echo $row->signup_id;?>">Update</a></td>
</tr>
<?php
$no++;
}
}
else
{
?>
<div align="center" style="margin-bottom:-100px;margin-top:100px; color:#F00;">
<?php echo "Record Not Found !!!!!!"; ?>
<?php
}
?>
</table>
<form method="post" action="<?php echo base_url();?>index.php/abc/search">
<input type="text" name="search" required placeholder="Only Username Allowed">
<input type="submit" value="Search">
</form>
</div>
<a href="<?php echo base_url();?>index.php/abc">Insert</a>
<div align="center">
<table border="1" style="background-color:#">
<tr>
<td>Id</td>
<td>Username</td>
<td>Password</td>
<td>Address</td>
<td>Contact</td>
<td>Email</td>
<td>Image</td>
<td>gender</td>
<td>city</td>
<td>hobby</td>
<td>Delete</td>
<td>Update</td>
</tr>
<?php
if($result)
{
$no=1;
foreach($result as $row)
{
?>
<tr>
<td><?php echo $no; $row->signup_id;?></td>
<td><?php echo $row->username;?></td>
<td><?php echo $row->password;?></td>
<td><?php echo $row->address?></td>
<td><?php echo $row->contact;?></td>
<td><?php echo $row->email;?></td>
<td><img src="<?php echo base_url();?>upload/<?php echo $row->image;?>" width="50" height="50" title="<?php echo $row->image;?>"/></td>
<td><?php echo $row->gender;?></td>
<td><?php echo $row->city;?></td>
<td><?php echo $row->hobby;?></td>
<td><a href="<?php echo base_url();?>index.php/abc/delete/<?php echo $row->signup_id;?>" onClick="return confirm('Delete')">Delete</a></td>
<td><a href="<?php echo base_url();?>index.php/abc/edit/<?php echo $row->signup_id;?>">Update</a></td>
</tr>
<?php
$no++;
}
}
else
{
?>
<div align="center" style="margin-bottom:-100px;margin-top:100px; color:#F00;">
<?php echo "Record Not Found !!!!!!"; ?>
<?php
}
?>
</table>
No comments:
Post a Comment