hmm yea that migh be a problem but heres the fix
PHP Code:
if ($x != $xold){
$uid = $DB_site->query("SELECT id FROM user WHERE userid = '$x'");
if (affected($uid)){
$radnomuser = $DB_site->query("SELECT * FROM user WHERE userid = '$x'");
$xold = $x;
} else {
$x = rand($numofusers);
}
} else {
$numofusers// should be the total number of users u have i dont feel like writing here how to get em
$x = rand($numofusers);
}