Khairul Islam
Khairul Islam

Reputation: 1215

Retrieve image from mysql database in codeigniter

I am trying to retrieve image using the image path (which saved in the database) in the array index.

like-

< img src= "< ? php echo base_url().$info['/assets/img/women_collection/2/main_image_gallery.jpg'];? >" / >

But it does not woring!.

plz help! .

Upvotes: 0

Views: 79

Answers (1)

Craig
Craig

Reputation: 1823

I assume $info is your database results?

Your array key should be the database table row.

$info['image']

Upvotes: 1

Related Questions