Open JeroenHeemskerk opened 1 year ago
Hier https://github.com/JBZonda/educom-webshop-oop/blob/6e2db592597419c020bb1d80cb1477340da43a5c/index.php#L156 https://github.com/JBZonda/educom-webshop-oop/blob/6e2db592597419c020bb1d80cb1477340da43a5c/index.php#L168 staan product id's hardcoded in je code, als iemand een product toevoegt, werkt het niet meer.
Maak in de database een functie die ALLE producten ophaalt.
Hier https://github.com/JBZonda/educom-webshop-oop/blob/6e2db592597419c020bb1d80cb1477340da43a5c/index.php#L156 https://github.com/JBZonda/educom-webshop-oop/blob/6e2db592597419c020bb1d80cb1477340da43a5c/index.php#L168 staan product id's hardcoded in je code, als iemand een product toevoegt, werkt het niet meer.
Maak in de database een functie die ALLE producten ophaalt.