简体   繁体   中英

Images path save in database

I need some help to display images altogether in a popup window,which paths are already saved in a database. If anybody give me the actual code in php it will very much helpful for me.

Main page:

<a href="imshow.php?id=<?php echo $id; ?>" target="_blank">
   Open in new window
</a>

imshow.php

<html>
<head><title>Image Details</title></head>
<body>
  <?php
      $path=...//read from database using $_REQUEST['id']
  ?>
  <img src="<?php echo $path;?>" alt="" />
</body></html>

here is reference site http://www.zenphoto.org/showcase/pl-photographies.jpg.php download code from there

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