Esato Mobile
General discussions : Esato forum : Random thread
> New Topic
> Reply
< Esato Forum Index > General discussions > Esato forum > Random thread Bookmark topic
Page <  123

laffen Posts: > 500

Garbage threads are included.
A simple SQL statement did the trick: "SELECT id FROM topics ORDER BY RAND() LIMIT 1" in addition to some access restriction stuff for the mod forum. Deleted threads will not turn up.
--
Posted: 2004-01-21 20:11:58
Edit : Quote

Vlammetje Posts: > 500

Now Ima play 'gamble' until I turn a real old fun garbage thread up

thnx laffen


another potentially boring evening saved

(oh god I am pathetic )
--
Posted: 2004-01-21 20:17:32
Edit : Quote

masseur Posts: > 500

oh yes, I never had a commercial use for the rand function in 15 years of RDB sql programming so didn't even think of that!

nice solution!

I guess I'll have to try harder to catch you out next time
--
Posted: 2004-01-21 20:27:19
Edit : Quote

floke Posts: > 500

This random function will really help me through boring days at work
It sure helped a lot today

A link to the random topic function should only be added to the forum homepage.
That way even people like Deanlambert that doesnt use search will find it too

@Deanlambert: You should try the search.. its really addictive
--
Posted: 2004-01-21 23:03:54
Edit : Quote

marlonxp Posts: > 500

here is a random answer dont This message was posted from a WAP device
--
Posted: 2004-01-23 17:41:45
Edit : Quote

kurt04 Posts: 1

Quote:
On 2004-01-21 11:14:22, laffen wrote:
Try this one http://www.esato.com/board/randomtopic.php


Hi,

I'm looking for a thread randomizing script (php) to use on my board. I found yours using google. Is it possible to get a copy of this script? Thanks.
--
Posted: 2004-03-12 04:45:32
Edit : Quote
Page <  123

New Topic   Reply
Forum Index

Esato home