SpankedNutz
Oct 9th 2005, 7:50 am
Hi there,
I have a mysql/php driven site.
Every week i get list of galleries that I can import into the db.
That works fine now....took me a while but it works like a baby.
Anyways, the problem is here:
I get multiple gallery urls from sponsers. When I import the galleries they all have different urls.
The problem is that when clicking on the links all the urls from the same sponser are the same, but in the DB they are different. The query somehow uses the first sponser link and doesn't go on to next sponser gallery.
This is the query I use now:
The query at the top of the PHP:
$sql = "SELECT * FROM `galleries` ORDER by RAND()";
Just to point out: The name field is the same for the same sponser, the only difference between the entries are the urls
I want to have a page with all the entries linking to the right galleries
Cheers
I have a mysql/php driven site.
Every week i get list of galleries that I can import into the db.
That works fine now....took me a while but it works like a baby.
Anyways, the problem is here:
I get multiple gallery urls from sponsers. When I import the galleries they all have different urls.
The problem is that when clicking on the links all the urls from the same sponser are the same, but in the DB they are different. The query somehow uses the first sponser link and doesn't go on to next sponser gallery.
This is the query I use now:
The query at the top of the PHP:
$sql = "SELECT * FROM `galleries` ORDER by RAND()";
Just to point out: The name field is the same for the same sponser, the only difference between the entries are the urls
I want to have a page with all the entries linking to the right galleries
Cheers