dingen in de mand van
prepare("select product.id, product.name, product.price, product.image, cart.count from cart join user on user.id = cart.user join product on product.id = cart.product where user.name = ?");
$statement->bind_param("s", $username);
if (!$statement->execute()) break;
$res = $statement->get_result();
if (!mysqli_num_rows($res)) {
echo "mandje leeg";
break;
}
while ($product = $res->fetch_object()) item_template($product);
} while (false); ?>