Jump to content

[SOLVED] link from pic and db


tml

Recommended Posts

i have a code that works to get a picture from my db:

    echo "<img src='" . $row["sti"] . "' class='foto'/>";

my problem are to make it a link so it open the same picture but in larger view, i have tryid abit and this are what i could think of so fair

    echo "<a href='" . $row["stilarge"] . "'><img src='" . $row["sti"] . "' class='foto'/>"</a>;

but i wont work, i have 3 table, 1 id one, one url like pic/1.jpg(sti) and the last for the large pic (stilarge)

so all i need is the link where it select same id but the large picture. needs to open in same window not like target_new

Link to comment
https://forums.phpfreaks.com/topic/126800-solved-link-from-pic-and-db/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.