I have 3 MySQL database
1 is friends, 1 is dashboard and 1 is user
what i want is to do a recurrng loop to display all of dashboard, except if you are friends with them.
I have this:
$queryy = mysql_query("SELECT * FROM dashboard ORDER BY time DESC LIMIT $show");
while($friendid = mysql_fetch_array($queryy)){
$friendidi = $friendid['userid'];
$friendquery = mysql_query("SELECT * FROM friends WHERE friendid = '".$friendidi."' AND accepted = '1'");
while($friendss = mysql_fetch_array($friendquery)) {
$queryy2 = mysql_query("SELECT * FROM dissusers WHERE ID = '".$friendidi."'");
while($wallposter = mysql_fetch_array($queryy2)){
//recurring loop, only shows if you are friends.
}
}
}