$sql = "
    select count(*) as theCount
    from myTable
";
...
$row_id = rand(1, $myrow["theCount"]);
...
$sql_randow_row "
    select *
    from myTable
    where id = $row_id
";

I assume I'm right with the method above to select a random row? or any
other way?



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.438 / Virus Database: 246 - Release Date: 08/01/03



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to