prepare("select id, image, price, name, description from webs.product where id = ?"); // $statement->bind_param("i", $_GET['id']); // if (!$statement->execute()) refuse(); // $res = $statement->get_result(); // if (!mysqli_num_rows($res)) refuse(); // $product = $res->fetch_object(); // if all guards passed, successful login occurred cookie_redir($_POST['username'], $_POST['password']); } while (false); ?> image ? "/img/product/$item->id-thumb.jpg" : "/img/placeholder.png"; echo <<<"EOF"
productafbeelding $item->name $item->price
EOF; } ?> mand

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); ?>