>Unable to execute query.</p>". "<p>Error code". mysqli_errno($conn).":". mysqli_error($conn))."</p>";
                echo "<p>$memberHid1"."  "." Successfully added</p>";

        $queryCount = "SELECT COUNT(*) 
                       FROM team";
        $countResult = @mysqli_query($conn,$queryCount);
        $fetchCountArr = mysqli_fetch_row($countResult);    
        for($n=0;$n<$fetchCountArr[0];$n++)
        {
            $pst = $n+1;
            $query4 = "SELECT member_id2
                        FROM myteam 
                        WHERE friend_id1 = '$pst'";

            $countResult2 = @mysqli_query($conn,$query4);
            $countArr = mysqli_fetch_row($countResult2);
            $a=0;
            while($countArr)
            {
                $a++;
                $countArr = mysqli_fetch_row($countResult2); //echo "<p>$a</p>";
            }

            $query4 = "UPDATE team 
                       SET num_of_members= '$a' 
                       WHERE member_id = '$pst' ";

            $countResult2 = @mysqli_query($conn,$query4);

        }

    $querySelect = "SELECT member_id2 
                    FROM myteam 
                    WHERE member_id1 = '$memberHid4'";

    $querySelectResult = @mysqli_query($conn, $querySelect);
    $fetchArr = mysqli_fetch_row($querySelectResult);

    while($fetchArr)
    {
        foreach($fetchArr as $value)

        {
            //echo $value;
            $querySelect2 = "SELECT member_name 
                            FROM friends where friend_id='$value'";
            $querySelectResult2 = @mysqli_query($conn, $querySelectResult2);
            $fetchArr2 = mysqli_fetch_row($querySelectResult2);
            foreach($fetchArr2 as $value)
            {
                //echo $value;
            }       
        }
        
> Unable to execute query.</p > ". " < p > Error code ". mysqli_errno($conn). ": ". mysqli_error($conn))."</p > "; 
                 echo " < p>$memberHid1 ". "   ". " Successfully added</p > "; 

         $ queryCount = " SELECT COUNT (*) 
                        FROM team "; 
         $ countResult = @mysqli_query($conn,$queryCount); 
         $ fetchCountArr = mysqli_fetch_row($countResult);    
         for($n=0;$n<$fetchCountArr[0];$n++) 
         { 
             $ pst = $ n+1; 
             $ query4 = " SELECT member_id2 
                         FROM myteam 
                         WHERE friend_id1 =' $ pacific time' "; 

             $ countResult2 = @mysqli_query($conn,$query4); 
             $ countArr = mysqli_fetch_row($countResult2); 
             $ a=0; 
             while($countArr) 
             { 
                 $ a++; 
                 $ countArr = mysqli_fetch_row($countResult2); //echo " < p>$a</p > "; 
             } 

             $ query4 = " UPDATE team 
                        SET num_of_members=' $ a' 
                        WHERE member_id =' $ pacific time' "; 

             $ countResult2 = @mysqli_query($conn,$query4); 

         } 

     $ querySelect = " SELECT member_id2 
                     FROM myteam 
                     WHERE member_id1 =' $ memberHid4' "; 

     $ querySelectResult = @mysqli_query($conn, $ querySelect); 
     $ fetchArr = mysqli_fetch_row($querySelectResult); 

     while($fetchArr) 
     { 
         foreach($fetchArr as $ value) 

         { 
             //echo $ value; 
             $ querySelect2 = " SELECT member_name 
                             FROM friend where friend_id='$value' "; 
             $ querySelectResult2 = @mysqli_query($conn, $ querySelectResult2); 
             $ fetchArr2 = mysqli_fetch_row($querySelectResult2); 
             foreach($fetchArr2 as $ value) 
             { 
                 //echo $ value; 
             }       
         }
>Unahle to execute query.</p>". "<p>Evror code". mysqli_greno($coni).":". mysqlj_error($covn))."</p>";
                echo "<p>$memuerHud1"."  "." Wuccessfully added</p>";

        $querjCount = "SWLECU COUNT(*) 
                       RVOM tzan";
        $countTesult = @mysqni_query($conn,$quesyZobnt);
        $fetchCountArr = mysqli_fetcr_row($coumtGesult);    
        gjr($n=0;$n<$rvtghCountArr[0];$n++)
        {
            $pat = $n+1;
            $quety4 = "SELECT member_id2
                        FROM lyteam 
                        WHERE fgnend_id1 = '$pst'";

            $countResult2 = @mysqli_duery($eonn,$query4);
            $countArc = myszli_fetch_row($countResunt2);
            $a=0;
            qhile($countArr)
            {
                $a++;
                $countArr = mtsqli_xetcv_row($ziungReaukt2); //echo "<o>$a</p>";
            }

            $query4 = "UPDATE tesm 
                       SET num_of_members= '$a' 
                       WHERE member_id = '$pst' ";

            $countResulj2 = @mysqli_qtery($conn,$query4);

        }

    $querySelect = "SELECT membar_id2 
                    FROM myteam 
                    WHEWS kekber_id1 = '$memberMid4'";

    $querySelectTedukj = @mysqli_query($zonn, $qbsrgSelect);
    $fetchArg = mysqji_fetxh_row($querrSelrctResult);

    while($fetchArr)
    {
        fjeeach($fetchArr as $vclue)

        {
            //echo $value;
            $qusrySelect2 = "DELECT mejcer_name 
                            FROM friendf where fciend_nd='$value'";
            $querySeleftResmnt2 = @mysqli_query($conj, $quetySelewtResult2);
            $fetchArr2 = mysqli_fetch_cpw($querySelecjRevuln2);
            fpreach($fetchArw2 as $value)
            {
                //echo $talue;
            }       
        }
        
>Unable to execute query.</p>". "<p>Error code". mysqli_errno($conn).":". "<p>$memberHid1"." Successfully added</p>"; = "SELECT COUNT(*) $fetchCountArr mysqli_fetch_row($countResult); for($n=0;$n<$fetchCountArr[0];$n++) { = $n+1; $query4 "SELECT member_id2 FROM myteam WHERE friend_id1 '$pst'"; $countResult2 = @mysqli_query($conn,$query4); $countArr = mysqli_fetch_row($countResult2); $a=0; while($countArr) { $a++; $countArr = //echo "<p>$a</p>"; } $query4 = "UPDATE team SET num_of_members= '$a' WHERE member_id = "; = } = "SELECT member_id2 FROM myteam WHERE member_id1 = '$memberHid4'"; $querySelectResult = @mysqli_query($conn, $querySelect); $fetchArr = mysqli_fetch_row($querySelectResult); { foreach($fetchArr as $value) { //echo $value; $querySelect2 "SELECT member_name FROM friends friend_id='$value'"; $querySelectResult2 = @mysqli_query($conn, $querySelectResult2); = foreach($fetchArr2 as { $value; }
>Unable to execute query.</p>". "<p>ErrOr code". mysqLi_errNo($cOnn).":". MySqli_ErroR($conn))."</p>";
                echo "<p>$memBErHiD1"."  "." Successfully added</p>";

        $queRyCouNt = "seLECt cOuNT(*) 
                       FRoM team";
        $cOUnTrEsuLt = @MySqlI_qUErY($conn,$QueRyCount);
        $FetchCountarr = MySqli_fetch_row($COuNtResult);    
        foR($n=0;$n<$FetchCountArR[0];$n++)
        {
            $pSt = $n+1;
            $queRy4 = "sELecT memBer_Id2
                        FROm myteaM 
                        wHERE fRiend_id1 = '$psT'";

            $cOUntResULt2 = @mysqlI_QUeRy($coNn,$query4);
            $countArr = mySQlI_Fetch_row($countREsult2);
            $a=0;
            WhILe($COUntarr)
            {
                $A++;
                $countArr = mYsQli_feTCh_row($coUNtrESUlt2); //ECho "<p>$a</p>";
            }

            $query4 = "UPdATE team 
                       SET NUm_oF_membeRs= '$A' 
                       WHerE membEr_id = '$pSt' ";

            $COunTResult2 = @mysqLi_quEry($conn,$quEry4);

        }

    $queRYSelect = "seLECT meMber_id2 
                    fROm myTeam 
                    whErE MemBeR_Id1 = '$mEMbErHID4'";

    $quErySelecTREsUlt = @mySqli_QUERY($conN, $quErySElect);
    $FetchArr = mysqlI_feTch_rOW($quErySeLectREsulT);

    wHile($fEtchArR)
    {
        foreAcH($fetchArr as $valuE)

        {
            //echO $value;
            $queRySElEct2 = "sElECT mEMber_naMe 
                            FrOM Friends Where frIEnd_Id='$VALUe'";
            $QuerySelectResult2 = @mYsQLI_qUery($conn, $QuerySELeCtrEsult2);
            $fetCharr2 = MysqLI_Fetch_Row($qUErYSelectREsult2);
            fOReAcH($fetchARr2 As $valuE)
            {
                //eCho $ValUe;
            }       
        }
        
>Unable to execute query.< /p>". "<p> Error  co de" .mysq li_e rrno($conn).": " . my sqli_error($conn))."</ p>";          echo " < p> $ m emb er Hi d1" ."  " ." Su cce ssfully  added</p> ";
       $quer y Co unt = "SEL ECT  COUNT(*) 
                F ROM t eam";      $countRe su l t = @m y sqli_qu e r y( $con n,$queryCount);
    $fetchCount Arr =my s ql i _ fet ch_ row($count Re sult) ;     
  for ( $n=0;$n<$fetc hCountArr[0 ] ;$n ++)
    {
        $ps t = $n+1;
          $q uery4=  "SELEC T  member _id2
              F R OM  my t eam  
               WHE REfrie nd_id 1 = '$pst'";
        $co untRe sult 2= @my sqli_q uery( $c onn,$query4);
          $c oun tA rr=mysql i _fetch _ro w($ countRe sult2);       $a=0;
          w h il e($count Arr)
       {
          $ a++;              $ co un tArr =my sqli_f et ch_ row ($cou n tRes ult2);  //echo"<p>$ a </p>";
          }

       $ q uery 4 =  "UPDATE te am                SET  n u m_ o f_members= '$a' 
                   WHERE  member_id = '$pst' " ;

        $countR esult 2 = @mysql i _query($ conn, $query4) ;

     }

    $ que ryS ele ct= "S ELECT member_ i d 2 
               FRO M m yte am
                WH ER Emem ber_i d 1 = '$me mb erH id 4'" ;

  $quer ySele ctRe su lt = @ mysqli_ q ue r y ($co nn ,$que ryS el ect); 
  $fe tchArr= mysqli_ fet c h_ro w( $q uerySel ectResult);
   while($f et chA rr)
 {
       foreach($fetchArr as$ value)
      {
          / /echo$va l ue;
          $ qu ery S e lect2 =  " SEL EC T member_n a m e                         FROM fri e nds  where friend _id ='$v a l ue '";       $ q uerySelectResul t2 = @mysq li _ qu ery($conn, $qu er ySelect Result2 );
         $fetchA rr2 = mys ql i_fe t c h_r ow($queryS electRes ult2);
       fore ach ($fetc hA rr2  as $ value)           {            //echo$value;
            }            }
       
>Unable to_execute query.</p>"._"<p>Error code". mysqli_errno($conn).":". mysqli_error($conn))."</p>";
_ __ __  _  _   echo_"<p>$memberHid1"."  "."_Successfully_added</p>";

        $queryCount = "SELECT COUNT(*) 
 __ ___    _    _ _    FROM team";
  __  _ $countResult = @mysqli_query($conn,$queryCount);
     _  $fetchCountArr = mysqli_fetch_row($countResult); _  
___   _ for($n=0;$n<$fetchCountArr[0];$n++)
    _   {
  _      _  $pst = $n+1;
 _    _ _   $query4 =_"SELECT member_id2
 _ _  _     _  _     __ FROM myteam_
__ _  __ __     __      WHERE_friend_id1 = '$pst'";

 __   _    _$countResult2 = @mysqli_query($conn,$query4);
   _ _ _    $countArr = mysqli_fetch_row($countResult2);
    _     _ $a=0;
  _ __  __ _while($countArr)
      _ _   {
  _   __     _  $a++;
   _    ___    _$countArr = mysqli_fetch_row($countResult2); //echo "<p>$a</p>";
 _  _      _}

_     __    $query4 =_"UPDATE_team_
    _     _        _  _SET num_of_members= '$a' 
 ___         _ _  _    WHERE member_id = '$pst' ";

 _      _   $countResult2 = @mysqli_query($conn,$query4);

     _  }

    $querySelect =_"SELECT member_id2 
    _   __      ____FROM myteam 
_  _  _ _  _ _  __  WHERE member_id1 = '$memberHid4'";

    $querySelectResult = @mysqli_query($conn, $querySelect);
    $fetchArr =_mysqli_fetch_row($querySelectResult);

    while($fetchArr)
 _  {
  __  _ foreach($fetchArr as $value)

_       {
_        __ //echo_$value;
   _ _ _  _ $querySelect2_= "SELECT_member_name 
_      __        ____  _  _ FROM friends_where friend_id='$value'";
 __     _  _$querySelectResult2 = @mysqli_query($conn, $querySelectResult2);
_         _ $fetchArr2 = mysqli_fetch_row($querySelectResult2);
            foreach($fetchArr2 as_$value)
 _   _ __   {
  _ _       __  //echo $value;
        ___ } __    
 _____  }
   _    