amrita Posted November 27, 2008 Share Posted November 27, 2008 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 More sharing options...
real_illusions Posted November 27, 2008 Share Posted November 27, 2008 Well..your php code isnt within the <?php ?> tags... Link to comment Share on other sites More sharing options...
amrita Posted November 28, 2008 Author Share Posted November 28, 2008 Hehe - well it is - I just didnt post that part.No other ideas? :-) Link to comment Share on other sites More sharing options...
amrita Posted November 28, 2008 Author Share Posted November 28, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.