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

[eluser]Rumel[/eluser]
my view page is:
<body>
<div id="middle_panel">
jkjksdllsfj<img src="&lt;?php echo site_url('images/codeigniter.jpg')?&gt;" alt="" width="150" height="150" />
</div>
&lt;/body&gt;
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.
#2

[eluser]kkristo[/eluser]
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>
#3

[eluser]Rumel[/eluser]
this is not display the image.but path show correctly.
#4

[eluser]InsiteFX[/eluser]
Try this.

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

&lt;body&gt;
<img src="images/picture.jpg" alt="" />
&lt;/body

InsiteFX
#5

[eluser]Rumel[/eluser]
Thank you for this help. now i display the image.




Theme © iAndrew 2016 - Forum software by © MyBB