Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Paul] Random Global Questions

Quote Reply
Re: [Paul] Random Global Questions In reply to
Its supposed to randomly order the @output array and then take the first 5 elements? Please feel free to add a better way of doing it.

Evoir,

Unless Paul comes up with something better, I think you can change the splice line to

splice (@output,$limit);

I can't see an easy way of using LIMIT as there are several calls to the Links table and you don't know which ones will contain results.
Subject Author Views Date
Thread Random Global Questions Evoir 6985 Aug 2, 2002, 4:34 PM
Thread Re: [Evoir] Random Global Questions
afinlr 6861 Aug 2, 2002, 5:14 PM
Thread Re: [afinlr] Random Global Questions
Evoir 6938 Aug 3, 2002, 9:24 AM
Thread Re: [Evoir] Random Global Questions
afinlr 6880 Aug 3, 2002, 11:22 AM
Post Re: [afinlr] Random Global Questions
Evoir 6847 Aug 3, 2002, 11:49 AM
Thread Re: [afinlr] Random Global Questions
Paul 6858 Aug 3, 2002, 11:56 AM
Thread Re: [Paul] Random Global Questions
Evoir 6871 Aug 3, 2002, 12:02 PM
Thread Re: [Evoir] Random Global Questions
afinlr 6799 Aug 3, 2002, 12:52 PM
Thread Re: [afinlr] Random Global Questions
Evoir 6801 Aug 7, 2002, 1:08 PM
Post Re: [Evoir] Random Global Questions
Evoir 6741 Aug 8, 2002, 2:45 PM
Thread Re: [Paul] Random Global Questions
afinlr 6829 Aug 3, 2002, 12:18 PM
Thread Re: [afinlr] Random Global Questions
Paul 6879 Aug 3, 2002, 12:43 PM
Thread Re: [Paul] Random Global Questions
Evoir 6749 Sep 13, 2002, 11:41 AM
Thread Re: [Evoir] Random Global Questions
Alex 6791 Sep 13, 2002, 12:34 PM
Thread Re: [Alex] Random Global Questions
Evoir 6704 Sep 13, 2002, 12:49 PM
Thread Re: [Evoir] Random Global Questions
Alex 6729 Sep 13, 2002, 1:42 PM
Post Re: [Alex] Random Global Questions
afinlr 6670 Sep 13, 2002, 3:37 PM
Post Re: [Alex] Random Global Questions
Evoir 6677 Sep 13, 2002, 4:34 PM
Post Re: [Alex] Random Global Questions
Evoir 6665 Sep 13, 2002, 4:37 PM
Post Re: [Alex] Random Global Questions
Evoir 6711 Sep 13, 2002, 4:56 PM