Need Help Setting Up Dynamic URL's
Posted: Sat Dec 10, 2011 3:56 pm
I've been working on this for the last couple hours and haven't had much luck. Basically, every time you visit the index of my site a random image is shown. The images are stored in a directory, and i use a table to holding the id, name, and url of each image. When the index page is loaded a random int is chosen, and the id = to the int displays the corresponding url for the image.
Now i'm trying to add the id into the url, "domain.com?img=1". I also need this url to always refer to the image in row 1.
I'm pretty lost, any help is greatly appreciated.
Now i'm trying to add the id into the url, "domain.com?img=1". I also need this url to always refer to the image in row 1.
I'm pretty lost, any help is greatly appreciated.