$random = $DB_site->query_first("SELECT userid,usergroupid FROM user WHERE userid > 0 AND usergroupid <> 10 AND usergroupid <> 11 ORDER BY rand()"); echo "<a href=\"forums/member.php?s=&action=getinfo&userid=$random[userid]\"><img src=\"img/v2-rand_prof.png\" alt=\"random profile\" width=\"292\" height=\"136\" border=\"0\" /></a>";