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.
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.