Welcome Guest, Not a member yet? Register   Sign In
Using session to display images
#1

[eluser]BigJoe[/eluser]
When a user logs in and CI loads it from the database. I'm trying to get CI to display the image.


Code:
$data = array(
  'user_rank'   => 'pro-guest.png';
);
$this->session->set_userdata($data);

Then I try and display this on the page.

Code:
echo '<img src="images/ranks/'.$this-&gt;session-&gt;userdata('user_rank').' ">';

So far nothing I tried seems to work. Any one have any ideas.

Joe





Messages In This Thread
Using session to display images - by El Forum - 12-09-2012, 11:48 PM
Using session to display images - by El Forum - 12-10-2012, 06:31 AM
Using session to display images - by El Forum - 12-10-2012, 07:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB