All pastes #809621 Raw Edit

random

public php v1 · immutable
·published 2007-12-09 01:46 UTC
rendered paste body
<?phprequire('forum/SSI.php');mysql_query("SELECT hostname FROM ".$db_prefix."host_reviews")while($row = mysql_fetch_array($select)) {$hostnames[]=$row['hostname'];}$random=rand(0,(count($hostnames)-1));mysql_query("SELECT * FROM ".$db_prefix."host_reviews WHERE hostname='$random'")while($row = mysql_fetch_array($select)) {echo $row['hostname'];}?>