The implode() function works on normal arrays, but it doesn't work on arrays created with mysql_fetch_array (I also tried mysql_fetch_row)How do you get them to work?Defined Above:\[code\]$friends = mysql_query("SELECT * FROM friend \[/code\]WHERE u1='$userinfo[username]' OR u2='$userinfo[username]' ");And further down:\[code\]$friendsrow = mysql_fetch_array($friends);$friendsrow = join(",",$friendsrow);$friendnotes = mysql_query("SELECT nid,user,subject,message FROM friendnote WHERE user IN ($friendsrow) ORDER BY timestamp ASC LIMIT 0,5");\[/code\](In case your wondering, that is for a community site)