Forum Moderators: coopster
Basically it returns an array of keys, which can be a little confusing to use. You'll want to do something like this:
$r=@mysql_query("select url from url_table");
if(@mysql_num_rows($r))
while($field=mysql_fetch_field($r)) $result[]=$field;
$rand_keys = array_rand($result, 2);
echo $result[$rand_keys[0]] . "\n";
echo $result[$rand_keys[1]] . "\n";
Hope that helps, let me know if it needs clarification!
Chad