Hallo,
Ik ben een benodigheden lijst en die streept de spullen af die je hebt gekocht. Maar nog niet bij alle. Maar ik wil niet zo veel ifs op een pagina.
Kan dat ook op een andere manier?
Ik ben een benodigheden lijst en die streept de spullen af die je hebt gekocht. Maar nog niet bij alle. Maar ik wil niet zo veel ifs op een pagina.
Kan dat ook op een andere manier?
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/config.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/header.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]leden[COLOR= #007700]->[/COLOR]ingelogd [COLOR= #007700]==[/COLOR] true[COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$ledenQuery[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]mysql[COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT
toverstok
FROM
leden
WHERE
id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]leden[COLOR= #007700]->[/COLOR]ledeninfo[COLOR= #007700][[/COLOR][COLOR= #DD0000]eigen[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$ledenFetch[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]mysql[COLOR= #007700]->[/COLOR]fetch[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ledenQuery[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$bezittingQuery[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]mysql[COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT
id,
artikel_id
FROM
gekochte_spullen
WHERE
lid_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]leden[COLOR= #007700]->[/COLOR]ledeninfo[COLOR= #007700][[/COLOR][COLOR= #DD0000]eigen[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$bezittingFetch[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]mysql[COLOR= #007700]->[/COLOR]fetch[COLOR= #007700]([/COLOR][COLOR= #0000BB]$bezittingQuery[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$BenodighedenQuery[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]mysql[COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT
id,
artikel_id
FROM
benodigheden
WHERE
artikel_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bezittingFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]artikel_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"
"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$BenodighedenFetch[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]mysql[COLOR= #007700]->[/COLOR]fetch[COLOR= #007700]([/COLOR][COLOR= #0000BB]$BenodighedenQuery[/COLOR][COLOR= #007700]);[/COLOR]
?>
U N I F O R M<br /><br />
1. <s>Drie effen werkgewaden (zwart)</s><br />
2. En effen puntmuts (zwart) voorm schooltijd<br />
3. En paar beschermde handschoenen (drakenhuid of soortgelijk)<br />
4. En wintermantel (zwart, met zilveren speld)<br />
N.B.: Alle kledingstukken moeten van naamlabels zijn voorzien<br /><br />
V E R P L I C H T E L E C T U U R<br />
Alle leerlingen moeten in het bezit zijn van de volgende werken:<br /><br />
Het Standaard Spreukenboek (Niveau 1) Door Miranda Wiggelaar<br />
De Geschiedenis van de Toverkunst door Mathilda Belladonna<br />
Theoretische Grondslagen der Magie door Adalbert Zwatel<br />
Gedaanteverwisselingen: een Boek voor Beginners door Emeric Morfo<br />
Duizend Magische Kruiden en Paddestoelen door Philippa Zwam<br />
Magische Brouwsels en Drankjes door Arsenius Grein<br />
Fabeldieren en Waar Ze Te Vinden door Newt Scamander<br />
De Zwarte Kunsten: Een Handboek voor Zelfbescherming door Quinten Tondel<br /><br />
O V E R I G E B E N O D I G D H E D E N<br /><br />
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ledenFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toverstok[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700])
{[/COLOR]
?>
1 toverstok<br />
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<s>1 toverstok</s><br />[/COLOR][COLOR= #007700];
}[/COLOR]
?>
1 ketel (tin, standaardmaat 2)<br />
1 set glazen of kristallen flesjes<br />
1 telescoop<br />
1 set koperen weegschalen<br />
Leerlingen mogen tevens een uil of een kat of een pad meenemen.<br /><br />
Ouders worden er aan herinnerd dat eerstejaars geen eigen bezemstelen mogen bezitten.
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/footer.php[/COLOR][COLOR= #007700];[/COLOR]
?> 
.

