How to Display menubar in User profile data in Codeigniter php framework. user data kese display karvate hai aur php codeigniter main kese code likha jata hai.
Ish blog main view page ka code post kiya jayega aur next blog main ish user profile ka php logic ka blog post kiya jayega ish topic pe 3 post likhe jayenge
- view
- controller
- model
<div class="container">
<div class="row">
<div class="col-md-3 col-lg-3 col-sm-12 col-xs-12">
</div>
<div class="col-md-6 col-lg-6 col-sm-12 col-xs-12">
<div class="card" style="margin-top: 15px; ">
<h3 class="text-center"> My Account </h3>
<table class="table table-bordered table-hover">
<?php
foreach($data as $myprofile) {
echo "<tr>";
echo "<th> First Name </th>";
echo "<td>" .$myprofile['first_name'].' '.$myprofile['last_name']. "</td>";
echo "</tr>";
echo "<tr>";
echo "<th> Email </th>";
echo "<td>" .$myprofile['email']. "</td>";
echo "</tr>";
echo "<tr>";
echo "<th> User Name </th>";
echo "<td>" .$myprofile['username']. "</td>";
echo "</tr>";
echo "<tr>";
echo "<th> Password </th>";
echo "<td>" .$myprofile['password']. "</td>";
echo '<td colspan="2"> <h5 class="text-center"> <a href="" data-toggle="modal" data-target="#myModal"> Update </a>
</h5> </td>';
echo "</tr>";
echo "<tr>";
echo "<th> Phone No </th>";
echo "<td>" .$myprofile['phone_number']. "</td>";
echo '<td colspan="2"> <h5 class="text-center">
<a href="" data-toggle="modal" data-target="#myModal_mob"> Update </a> </h5> </td>';
echo "</tr>";
}
?>
</table>
</div>
</div>
<div class="col-md-3 col-lg-3 col-sm-12 col-xs-12">
</div>
</div>
</div>