retrieving images from database and displaying all on a page

后端 未结 2 1086
难免孤独
难免孤独 2021-01-27 22:31

I have 5 attachments whose paths are stored in database (5) columns. I am retrieving the paths as follows for the first file.

$path1=$rowArray[\'file1\'];
$path2         


        
相关标签:
2条回答
  • 2021-01-27 23:00

    you need javascript for that, an hover on the links would create a div with the image/s which src attribute would be the link's path..

    0 讨论(0)
  • 2021-01-27 23:06

    No doubt you cannot do it the way you want, with one link, show all your images. I guess the best way to do it is to send the file names or ids on your URL and check for it on your target PHP, this way you can show them.

    0 讨论(0)
提交回复
热议问题