Show image with grid from Array

QuestionsShow image with grid from Array
mofel asked 7 years ago


I'm trying to show images in rows.
It works well.

But if i load the grid from an Array, the grid works well but the image doesn't appear.
I'm even trying with a static image … it dosen't show the image (i don't have any JS error).

Do Image and load from array work together ?


2 Answers
Abu Ghufran answered 7 years ago

You can set <img> html tag in data array.

for ($i = 0; $i < 200; $i++)
$data[$i]['id'] = $i+1;
$data[$i]['code'] = $name[rand(0, 4)][0].($i+5);
$data[$i]['more_options'] = "<a class='fancybox' href=''><img height=25 src=''></a>&quot;;

Refer demos/loading/load-array.php

mofel answered 7 years ago

Hell Abu,

Thanks it works when we add the image code in the array.

I was using it in the same way than database.


Your Answer

19 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?