php exploding array in a loop and joining
<p>Im using group concat to get concatenate the ids as uid
uid column is grouped as 68,94,97,88,93,69,95
 I want to refer other table and get the name of each id ,for that i explode                      the                       array         as     given below</p>

<p>How do i get the <code>$arrurtype</code> in the <code>$row</code> array ?</p>

<pre><code>    $rs = mysqli_query($dbc,"SELECT A.* ,    
   GROUP_CONCAT( `B`.`uid` ) AS `uid`
       FROM A
        JOIN B
          ON A.id = B.id
       GROUP BYA.Section_Id  limit $offset,$rows");
  $items = array();   
          $i=0;
while($row = mysqli_fetch_object($rs))
       { 
        $idSysUsers = $row-&gt;idSysUsers;    
     $exp =  explode(',',$idSysUsers);  
      foreach($exp as $val)
          {
        $qUTdd = "SELECT  uname from users where  `uid = '".$val."'";     
    $q11 =  mysqli_query($dbc,$qUTdd);      
     $rrr = mysqli_fetch_object($q11);
        $arrurtype[] = $rrr-&gt;uname;
       }     


$row = array(   
 'cola1' =&gt;$row-&gt;a1,
'cola2'=&gt;$row-&gt;a2,
    'cola3'=&gt;$row-&gt;a3,
    'cola4'=&gt;$row-&gt;a4,
'cola5'=&gt;$arrurtype
  );   
    array_push($items, $row);
  //$i++;
}
</code></pre>
