在多个循环上工作

i have an array with multiple user id receiving from another page through header function

$Values= unserialize(urldecode($_GET['vals']));

this line give me such array

Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 )

by using for each loop i am using each user id to retrieve data from database table and displaying into html table with following code

 //displaying data into tables -->
$Values= unserialize(urldecode($_GET['vals']));
if(isset($Values))
{
foreach($Values as $user_id)
{
     $prevCon['where'] = $user_id;
     $prevUser = $user->getRowss($prevCon);
     while($row = $prevUser->fetch_assoc())
     {

    echo "<tr>";
    echo "<td>" . $row['full_name'] . "</td>";
    echo "<td>" . $row['address'] . "</td>";
    echo "<td>" . $row['email'] . "</td>";
    echo "<td>" . $row['country_name'] . "</td>";
    echo "<td>" . $row['city_name'] . "</td>";
    echo "<td>" . $row['NIC'] . "</td>";
    echo "</tr>";

  }
}
}
else
{
echo " no data to display";
}

but my loop runs for 36 time each entry against one user id is being display for 6 times and then another user id is used again for 6 times

please do help me i want to display one entry for each user id