Skip to content Skip to sidebar Skip to footer

Possible To Make My Images Called From A Database To Be A Link To Another Page?

'; echo '<

Solution 1:

Just Add an anchor tag around the image.

echo"<td>";
   echo"<a href='url here'>";
        echo'<img src="data:image/png;base64,' . base64_encode($image) . '" />';  
   echo"</a>"; 
echo"</td>";

Solution 2:

Create an image.php file. In the file, create a function that will parse an ID from the URL. In your table of images, link them to /images.php?Id=thepictureid

Post a Comment for "Possible To Make My Images Called From A Database To Be A Link To Another Page?"