for($i=0; $i<count($cart);$i++){
$idProduct = $cart[$i]["idProduct"];
$query = 'SELECT * FROM `Games` WHERE `id`= ' . $cart[$i]["idProduct"] . '';
$results = $mysqli->query($query);
while($row = $results->fetch_assoc()){
echo '<ul class="unit">
<li><span>'.$row["title"].'</span></li>
<li><span>'.$row["img"].'</span></li>
<li><span>price</span></li>
<div class="clearfix"></div>
</ul>';
}
}