Note Submitter: helsouz at gmail dot com
----
Well, i don't know much about php and i try to get my own solutions:
<?php
include('config.php');
$lastid= 'lastid';
$result = mysql_query("SELECT id AS $lastid FROM registered_members ORDER BY id DESC LIMIT 0,1");
while($row = mysql_fetch_array($result))
{
$lastid2= $row[$lastid];}
echo rand(0, $lastid2);
?>
This will get the latest value from ID row, once this is done, the rand($min, $max) will work. Any inconviniet? Just need to generate random numbers between the 0 and the latest id entry on the registered_members
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.