You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$res=$mysqli->query('SELECT Messages.*, Users.FirstName, Users.LastName FROM Messages INNER JOIN TreePath ON Messages.CommentID=TreePath.Descendant INNER JOIN Users ON Users.ID=Messages.userID WHERE TreePath.Ancestor='.$anc.' AND TreePath.Descendant!='.$anc.' AND TreePath.Depth=1 AND Users.ID=Messages.userID ORDER BY Messages.Date DESC');
$d = $res->fetch_all();
for( $i = 0; $i < count($d); $i++ )
{
$z = NULL;
$z = $mysqli->query('SELECT Count(*) FROM TreePath WHERE Ancestor='.$d[$i][0]);