Jump to content

lightbox vs php


amrita
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...