Im new at CodeIgniter and I want to read some data from mysql database using CodeIgniter. Data I have stored is an image. I have this folder structure in my aplication: 1.ci
application
- controllers
- views
- models
- upload_images (Here I have the images stored as jpg files) When I create this code the image shows up and it is Ok:
echo ' <img src=" http://localhost/ci/'.$row->book_img.' " />'
While when I try to output images from the database in another way like below it outputs the link instead of the image. I want to use html helper and I have loaded it.
echo ' img(' http://localhost/ci/'.$row->book_img.')';
the image doesn't appear. Do I do something wrong in the second way? Thanks!