dingen in de mand van
prepare("select product.id, product.name, product.price, product.image, cart.count from cart join customer on customer.id = cart.customer join product on product.id = cart.product where customer.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); ?>