im trying to making a random member appear on my welcome page, but when i click on the random name it comes up as my details instead of the name im clicking on anyhow this is where ive got any help be great
<?php
/*
RANDY LINK
by immortal
*/
$query = "SELECT * from members ORDER BY RAND(" . time() . " * " . time() . ") LIMIT 1";
$result = mysql_query($query);
$num_rows = mysql_num_rows($result);
$rowrandy = mysql_fetch_array($result);
$go = $rowrandy['username'];
$id = $rowrandy['id'];
echo "<a href=\"profile.php?id=$id&name=$name&usern ame=$username&password=$password\">$go</a>
" ;
?>
<?php
/*
RANDY LINK
by immortal
*/
$query = "SELECT * from members ORDER BY RAND(" . time() . " * " . time() . ") LIMIT 1";
$result = mysql_query($query);
$num_rows = mysql_num_rows($result);
$rowrandy = mysql_fetch_array($result);
$go = $rowrandy['username'];
$id = $rowrandy['id'];
echo "<a href=\"profile.php?id=$id&name=$name&usern ame=$username&password=$password\">$go</a>
" ;
?>
Comment