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
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..