PHP GUI?
| From: | Todd Williamsen | Date: | Wed, 07 Nov 2001 02:41:59 +0000 |
| Subject: | PHP GUI? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10244@lists.php.net to get a copy of this message | ||
Now that would be sweet!
I am interested in how I would write a query to mysql that would randomize a
selection...
i.e.
I have a table list full of qoutes from famous people and wanted to
randomize them that a different would show..
How would I do that? I did it in VB with a function called random
Like this:
Sub QuoteRecordset_ondatasetcomplete()
Randomize()
intQuote = Int((QuoteRecordset.getCount()) * Rnd + 1)
QuoteRecordset.moveAbsolute(intQuote)
' save quote of the day variables
Session("Quote") = QuoteRecordset.fields.getValue("Quote")
Session("Author") = QuoteRecordset.fields.getValue("Author")
End sub