Hey,
Ik heb een school spullen script maar hij bugt nu opeens. Net deed hij het nog perfect, maar als ik bijvoorbeeld 2 gewaden heb dan zet hij een streep door de drie gewaden. Terwijl ik 2 gewaden heb i.p.v. 3.
Kan iemand helpen?
Ik heb een school spullen script maar hij bugt nu opeens. Net deed hij het nog perfect, maar als ik bijvoorbeeld 2 gewaden heb dan zet hij een streep door de drie gewaden. Terwijl ik 2 gewaden heb i.p.v. 3.
Kan iemand helpen?
// Schoolspullen
$schoolitemQuery = $mysql->query("SELECT id, ( SELECT 1 FROM leden_hutkoffer WHERE lid_id = ".$info[id]." AND artikel_id = hutkoffer.id GROUP BY artikel_id) gebruiker_heeft FROM leden_hutkoffer hutkoffer");
$gebruiker_heeft = array();
$gebruiker_heeft_aantal = array();
while($schoolitemFetch = $mysql->fetch($schoolitemQuery))
{
$gebruiker_heeft[$schoolitemFetch[id]] = is_null($schoolitemFetch[gebruiker_heeft]) ? FALSE : TRUE;
$gebruiker_heeft_aantal[$schoolitemFetch[id]] = ($mysql->num_rows($schoolitemQuery));
}
print_r($gebruiker_heeft);
?>
<div class="titel">
<h1>Schoolspullen</h1>
</div>
<div class="inhoud">
<h3>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$school[/COLOR][COLOR= #007700];[/COLOR] ?></h3>
<h4>U N I F O R M</h4>
Eerstejaarsstudenten hebben nodig:<br /><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]4[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$gebruiker_heeft_aantal[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]4[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #0000BB]3[/COLOR] [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]);[/COLOR] ?>1. Drie effen werkgewaden (zwart)[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]4[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$gebruiker_heeft_aantal[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]4[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #0000BB]3[/COLOR] [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]);[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]5[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>2. Eén effen puntmuts (zwart) voor schooltijd[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]5[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>3. Eén paar beschermende handschoenen (drakenhuid of soortgelijk)[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>4. Eén wintermantel (zwart, met zilveren speld)[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
N.B.: Alle kledingstukken moeten van naamlabels zijn voorzien
<h4>V E R P L I C H T E L E C T U U R</h4>
Alle leerlingen moeten in het bezit zijn van de volgende werken:<br /><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]6[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>Het Standaard Spreukenboek (Niveau 1) door Miranda Wiggelaar[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]6[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]7[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>De Geschiedenis van de Toverkunst door Mathilda Belladonna[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]7[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]8[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>Theoretische Grondslagen der Magie door Adalbert Zwatel[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]8[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]9[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>Gedaanteverandering: een Boek voor Beginners door Emeric Morfo[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]9[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]10[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>Duizend Magische Kruiden en Paddenstoelen door Philippa Zwam[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]10[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]11[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>Magische Brouwsels en Drankjes door Arsenius Grein[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]11[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]12[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>Fabeldieren en Waar Ze Te Vinden door Newt Scamander[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]12[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]13[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>De Zwarte Kunsten: Een Handboek voor Zelfbescherming door Quinten Tondel[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]13[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>
<h4>O V E R I G E B E N O D I G D H E D E N</h4>
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$info[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toverstok[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>1 toverstaf[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$info[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toverstok[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]14[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>1 ketel (tin, standaardmaat 2)[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]14[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]16[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]||[/COLOR] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]17[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>1 set glazen of kristallen flesjes[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]16[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]||[/COLOR] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]17[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]19[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>1 telescoop[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]19[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br />
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]18[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]<strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?>1 set koperen weegschalen[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$gebruiker_heeft[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]18[/COLOR][COLOR= #007700]] ==[/COLOR] TRUE [COLOR= #007700]?[/COLOR] [COLOR= #DD0000]</strike>[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] ?><br /><br />
Leerlingen mogen tevens een uil Of een kat Of een pad meenemen.
<h4>OUDERS WORDEN ERAAN HERINNERD DAT EERSTEJAARS GEEN EIGEN BEZEMSTELEN MOGEN BEZITTEN.</h4>
Ik bedoel ene makkelijke manier
07:
