Does anyone have any ideas how to use one of these to make it work.?
here is the code i am using
Code: Select all
if($sign['random_referral']=='1') {
$sql = "SELECT username FROM members ORDER BY RAND() LIMIT 1";
$res = mysql_query($sql);
$row = mysql_fetch_assoc($res);
$var1 = $row['username'];
header("Location: signup.php?ref='.$var1.'");
exit;
}