06-11-2019, 09:04 PM
Hello!
I would like to use this code for profile within my code but I get errors of undefinfed variables. Here is the code:
<div class="avatar">
<img alt="<?php print $this->session->userdata('user_name'); ?>" src="<?php print HTTP_IMAGES_PATH; ?>user-default.jpg">
</div>
</div>
<div class="card-body info">
<div class="title">
<a href="<?php print site_url() ?>profile"><?php print $userInfo['full_name']; ?></a>
</div>
<div class="desc"> <a target="_blank" href="<?php print site_url(); ?>"><?php PRINT APPLICATION_NAME; ?></a></div>
<div class="desc"><?php print $userInfo['email']; ?>, <?php print $userInfo['contact_no']; ?></div>
<div class="desc"><?php print $userInfo['address']; ?></div>
I get errors about the php but dont want to delete them because I feel its important. How do I edit the php inserts so they fit my code?
,
Mekaboo
I would like to use this code for profile within my code but I get errors of undefinfed variables. Here is the code:
<div class="avatar">
<img alt="<?php print $this->session->userdata('user_name'); ?>" src="<?php print HTTP_IMAGES_PATH; ?>user-default.jpg">
</div>
</div>
<div class="card-body info">
<div class="title">
<a href="<?php print site_url() ?>profile"><?php print $userInfo['full_name']; ?></a>
</div>
<div class="desc"> <a target="_blank" href="<?php print site_url(); ?>"><?php PRINT APPLICATION_NAME; ?></a></div>
<div class="desc"><?php print $userInfo['email']; ?>, <?php print $userInfo['contact_no']; ?></div>
<div class="desc"><?php print $userInfo['address']; ?></div>
I get errors about the php but dont want to delete them because I feel its important. How do I edit the php inserts so they fit my code?


Mekaboo