note 8046 deleted from rand by hholzgra

From: Date: Fri, 25 Aug 2000 10:40:41 +0000
Subject: note 8046 deleted from rand by hholzgra
Groups: php.notes 
Request: Send a blank email to php-notes+get-3233@lists.php.net to get a copy of this message
I've got a dilemna that the above posted solutions won't solve. I've got a table, with some rows marked as "active" and others as "in-active". I want to randomly select an ACTIVE row. Above methods people have posted do not do this. They assume that all rows can be chosen. To further complicate matters, I'd like to add a column that specifies a "probability to be chosen" (for example range 1-5). Basically I want some rows to have a higher probability to be chosen than others. I've been wrapping my brain around this for days with no luck..can anyone help?

« previous php.notes (#3233) next »