i cant get that to work...
this is the code in place...
$Link = mysql_connect ($Host, $User, $Password);
// create array from results
$sql="SELECT id FROM $TableName";
$res=mysql_db_query ($DBName, $sql, $Link);
if(mysql_num_rows($res) > 0) {
$array = array();
while($r=mysql_fetch_array($res)) {
$array[]=$r['id'];
}
}
// pull three random rows from array
$rand_keys = array_rand($array, 3);
echo $input[$rand_keys[0]] . "\n";
echo $input[$rand_keys[1]] . "\n";
echo $input[$rand_keys[2]] . "\n";
mysql_close ($Link);