简体   繁体   中英

zoom every image displayed in a loop

im new in php programming, my problem is i want to zoom every image displayed in a while loop. here is my code..

$query = mysqli_query($conn,"SELECT * FROM room");
        while($display = mysqli_fetch_assoc($query))
        {

<tr>
      <td>   
       <div id="imageContainer"><!-- zoom id -->
      <div style="margin-left:15px;">

       <img width=120 height=70 class="thumbnail" src='<?php echo $display['image'];?>'> 

       </div>
       </div>
       </td>
</tr>

So you must put there some javascript or jquery (and more frameworks :D) code that will zoom on them,php cant zoom on image. And there is a question how you want to zoom them.There are many possibilities to do that.You have miniatures of your pics and click on them make them somewhere bigger or how ? And I think that you have even the code what you placed here bad you are combining html a php.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM