Gossamer Forum
Home : Products : DBMan : Customization :

Random Record

Quote Reply
Random Record
The Mods I've seen do seem to start from the notion that all records are numbered in sequence from 1,2,3,4, etc.
It does not seem to take into account that a record could have been deleted.
These mods come up with a blank (record not found etc) when a record which was deleted is called.

Does anyone know a way to display a random record based on the records which are really in the database? (so picking form say: 1,3,16,17,19,22 etc instaed of presuming it's 1,2,3,4,5,6 etc..)

Thanks eitherway

Close Watch
LyricZ http://www.lyricz.12inter.net
NL
Quote Reply
Re: Random Record In reply to
Ah well found the aswer myself.

For those who care:

Random Record Mod 1.0
+++++++++++++++++++++

Changed:
my(@fields) = split(/$db_delim/, $line);

To:
my(@fields) = &split_decode ($line);
(from another JPD helping)



Close Watch
LyricZ http://www.lyricz.12inter.net
NL