I have PHP script works without problems, like this :
while($row4 = mysql_fetch_array($result4))
{
if (($row4['Username'] != 'root') && ($row4['ToUpline'] == 1)){
if (!(($row4['Username'] != $MyUsername) && ($row4['Private'] == 1))){
//some other scripts here...
}};
on the other hand, I already have WHERE conditon on MySQL command :
WHERE (NetworkTree.LeftNum <= $MyLeftNum AND NetworkTree.RightNum >= $MyRightNum)
AND MyBlackList.HideWho IS NULL
how to combine these PHP conditions into 1 single SQL command so that I can remove PHP IF. thanks...