Welcome Guest, Not a member yet? Register   Sign In
Undefined variable: admin_id
#3

(01-10-2019, 11:28 PM)ciadmin Wrote: As, the error message says, line 16 in C:\xampp\htdocs\dgos\application\views\admins\admin-profile.php has not been set.
here is the view page I define it please take a  look 
 


 <div class="card-body">
                                    <?php
                                        $profile_info = $this->db->get_where('admin' , array('admin_id' => $admin_id))->result_array();
                                        foreach($profile_info as $row):?>
                                        <div class="mx-auto d-block">
                                            <img class="rounded-circle mx-auto d-block" src="<?php echo base_url().'assets/' ; ?>images/icon/avatar-11.jpeg" alt="Card image cap">

                                            <h5 class="text-sm-center mt-2 mb-1"><?php echo $row['name'];?></h5>
                                            <div class="location text-sm-center">
                                                <i class="fa fa-map-marker"></i> Karachi, Pakistan</div>
                                        </div>
Reply


Messages In This Thread
Undefined variable: admin_id - by Saeed_Sikandar - 01-10-2019, 11:26 PM
RE: Undefined variable: admin_id - by ciadmin - 01-10-2019, 11:28 PM
RE: Undefined variable: admin_id - by Saeed_Sikandar - 01-10-2019, 11:31 PM
RE: Undefined variable: admin_id - by ciadmin - 01-11-2019, 12:48 AM
RE: Undefined variable: admin_id - by InsiteFX - 01-11-2019, 04:50 AM
RE: Undefined variable: admin_id - by Codehoster - 08-24-2019, 12:10 AM
RE: Undefined variable: admin_id - by Wouter60 - 08-24-2019, 07:52 AM
RE: Undefined variable: admin_id - by InsiteFX - 08-24-2019, 04:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB