View Single Post
Old 09-11-2003, 10:59 PM  
allamerican2003
Confirmed User
 
Join Date: Mar 2003
Posts: 675
a simple script needed

can anyone point me to a script, or help me figure out what Im doing wrong.
I need a "random gallery" script that will do the following.

I enter in a url such as:
http://www.domainname.com/galleries.php?=123456

now the galleries.php file will access another file called galls.
There will be 20 galleries in there.
It will pick a random gallery and add the "123456" code above to a variable in the file.

the galls file will be setup like
http://www.domain1.com/linkcode=refer code
http://www.domain2.com/linkcode=refer code
http://www.domain3.com/linkcode=refer code
etc

so when I enter in
http://www.domainname.com/galleries.php?=123456
it will go to the galls file, and replace the "refer code"
with the 123456 which is at the end of
http://www.domainname.com/galleries.php?=123456

so if I change 123456 to 444444 it will change the refer code on the output of the random gallery.

Im using a php based script, but i'll use cgi if someone can show me the way.
allamerican2003 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote