Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-01-2004, 05:59 AM #1
- Join Date
- Dec 2003
- Thanked 0 Times in 0 Posts
A smaller image transferes to a larger image
I was wondering where I am going wrong, I have a website that is at www.cypresspointonrayburn.com/index.txt and in this website I have it choosing images randomly, but when someone clicks on this image I was wondering how would I tell it what image to put in the url and goto the next page the code for that second page is
the database is arraged in the following order if that helps
id and images are the field names
1 name =1
2 name =2
but I don't know where I am going wrong, but all of the php and html code is in the two pages that I mentioned above...thanks
10-01-2004, 12:44 PM #2
- Join Date
- Jun 2002
- Thanked 5 Times in 5 Posts
I'm not sure how clear the above was.
If im understanding, you want when the image is clicked for the URL to go to a new file? but the images are random.. I'm assuming the URL differs with every random image. In which case just put a var that is the URL difference in the DB with the image then when the random image is displayed the code also dymanically creates a <a href> inside with is the URL containing the difference from the DB.
That clear? I didn't understand what you are trying to do totally but I think that's it.
Let me know,