Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Andy] Filtered Random Links

Quote Reply
Re: [Andy] Filtered Random Links In reply to
Well...

By just changing the code with the suggestion you added, appears to:
1) If isRandomable flag .... Jump to the URL
2) If not isRandomable flag.... Fall down and display a page saying No links were available.

This made sense in that it appears the original code is pulling the number of links available and randomizing the number from that.
Then it pulls the information from the link, if its available. With your suggestion, it looks like it will pull the information if it is available AND the isRandomable is set.

What I need to do is either:
1) keep looping until I hit a link that is available and isRandomable is set....

or

2) Query with the effect of
Select ID from Links
where Links.isRandomable = 'Yes'

Then then pick a random row from 0 to the query row count.
THEN pull the link info.
Subject Author Views Date
Thread Filtered Random Links lancerasmussen 4671 Apr 28, 2007, 1:58 AM
Post Re: [lancerasmussen] Filtered Random Links
tandat 4538 Apr 28, 2007, 7:43 AM
Thread Re: [lancerasmussen] Filtered Random Links
Andy 4527 Apr 30, 2007, 1:57 AM
Thread Re: [Andy] Filtered Random Links
lancerasmussen 4478 Apr 30, 2007, 10:47 AM
Thread Re: [lancerasmussen] Filtered Random Links
Andy 4490 Apr 30, 2007, 11:29 AM
Post Re: [Andy] Filtered Random Links
lancerasmussen 4464 May 1, 2007, 10:56 AM
Thread Re: [Andy] Filtered Random Links
lancerasmussen 4466 May 1, 2007, 12:44 PM
Thread Re: [lancerasmussen] Filtered Random Links
Andy 4470 May 1, 2007, 2:14 PM
Post Re: [Andy] Filtered Random Links
lancerasmussen 4454 May 1, 2007, 3:36 PM