Never run ORDER BY statements on large tables (e.g 4M tables).
Heres some code that will work as an alternative in most cases.
enjoy.
Heres some code that will work as an alternative in most cases.
PHP:
$resv = mysql_query('SELECT COUNT(*) FROM v3links');
$row = mysql_fetch_row($resv);
$sval = rand(0,$row[0]-15001);
$query=mysql_query("SELECT `id`,`fileid`,`type`, `filename` FROM `v3links` LIMIT ".$sval.",15000");
enjoy.