Jump to content

lightbox vs php


amrita

Recommended Posts

This is my code to the link:"<td align='right'><a href='?page=kategori&id=".$_GET['id']."&bilid=".$hentbil['bid']."' rel='lightbox'><img src='images/".$hentbill."' width='100' height='100' border='1' /></a><br />Pris: ".$hentpris." Kr.</td>";bid is the id to the picture in the databaseI'm having a problem with the link to my images - i'm using lightbox - but no image appears when i click on them - i tried using a simple a href and lightbox works fine then - so the problem must exist in the link - however i cant figure out what it is.. can anyone help?according to lightbox the link should look like this: <a href="images/image-1.jpg" rel="lightbox">image #1</a>simplified, that is.. where do i go wrong trying to implement it with php?

Link to comment
Share on other sites

I figured out where my mistake was:"<td align='right'><a href='images/".$hentbill."' rel='lightbox'><img src='images/".$hentbill."' width='100' height='100' border='1' style='border-color:#000000;' /></a><br />Pris: ".$hentpris."  Kr.</td>";All I had to do was to enter the path to the picture - So subject closed

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...