Welcome Guest, Not a member yet? Register   Sign In
image display problem

my view page is:
<div id="middle_panel">
jkjksdllsfj<img src="&lt;?php echo site_url('images/codeigniter.jpg')?&gt;" alt="" width="150" height="150" />
my images folder in ci folder this path:ci/images/codeigniter.jpg but still not loaded in display.

i also use echo img('images/picture.jpg', TRUE); but this code not work properly.

please help me any one.

can you access images directlu from url. http://mysite/images/codeigniter.jpg ?

if you can access images Directly then try: <div>&lt;?echo site_url();?&gt;images/codeigniter.jpg</div>

this is not display the image.but path show correctly.

Try this.

&lt;base href="&lt;?php echo base_url(); ?&gt;" /&gt;

<img src="images/picture.jpg" alt="" />


Thank you for this help. now i display the image.

Theme © iAndrew 2016 - Forum software by © MyBB