= (SELECT FLOOR( MAX(id) * RAND()) FROM files ) ORDER BY id LIMIT 1"; $sql = mysql_query($query); $row = mysql_fetch_array($sql); $result = mysql_query("SELECT * FROM files"); $num_rows = mysql_num_rows($result); $quicklink = $row[quicklink]; $nextimage = "http://miscpix.com/". $quicklink; ?> MiscPix - A misc pic on each click!