PDA

View Full Version : Is it possiblet to display search Results 'Randomly'


Razasharp
03-10-2005, 07:06 PM
I was looking at this way of showing search results via URL http://www.vbulletin.com/forum/showthread.php?t=107955

But wondered if there was a way to have a 'sort by' option of 'random'?

This would be useful if say your site has hundreds of 'pictures' of cats but you want the search results to show/list threads randomly instead of last posted or thread started date etc

Any ideas on how this can be done even if it has to be 'carried out' via the URL search (as shown in the url pasted above?).

Thanks in advance.

Soup
03-10-2005, 07:56 PM
To sort something by random in a query would be 'ORDER BY RAND()' so you'd have to edit the query.

Razasharp
03-10-2005, 09:10 PM
Any ideas on how to do that? Sorry am new to sql/php...