hello all i am having this design in my web page
i want different images in each of the block each time the page refreshes the images changes in each block like image1 in block 1 and image2 in block 2 and so on i can not use loop as the divs here are not the same i have this particular pattern
i can get the images from my database and stored in an array but i have no idea how to place them in these divs individual to be distinct from each other
see my code below
$getimages=mysqli_query($conn,"select uid,vname,thumb,views from
tablename where something !='0' and somethingelse !='' order by rand() limit 21");
$Results = array();
while($tmp=mysqli_fetch_assoc($getimages)){
$Results[] = array('uid' => $tmp['uid'],
'vname' => $tmp['vname'], 'thumb' => $tmp['thumb']);
}
$i=randim('13');
function randim($code){
return rand(0,10);
}
please give me some hints to solve this i want individual images in each of the block i can not use loop as the divs are non repetative
in my div i am calling images as
<div class="somethingddd" style="background:url('mem/<?=$Results[$i]['uid']?>/img/<?=$Results[$i]['thumb']?>');background-size:cover;">
</div>
