I have a problem selecting 6 random friends
This is the query I\'ve got so far:
$result = num_rows(\"SELECT * FROM friends WHERE member_id = \'\".$_S
If you use:
SELECT * FROM friends WHERE member_id = '".$_SESSION['userid']."' ORDER BY rand() LIMIT 6
If the person only has 3 friends, the query will only show those three - it doesn't mean that the query will always return six rows.