Ik zit met de volgende melding,
Notice: Use of undefined constant leerlingen - assumed 'leerlingen' in C:\Inetpub\wwwroot\PHP\include\tableselect.php on line 8
Dit is de script:
<?php
$name = $_SESSION['username'];
$functiequery = "SELECT functie FROM user WHERE username = '$name'";
$functieresult = mysql_query($functiequery);
$functie = mysql_result($functieresult, 0, 0);
if($functie == "leerling"){
$tabel = leerlingen;
}
if($functie == "docent"){
$tabel = docenten;
}
if($functie == "bedrijf"){
$tabel = bedrijven;
}
if($functie == "admin"){
$tabel = beheerders;
}
if($functie == "bpvcoordinator"){
$tabel = docenten;
}
?>
Wat is hier verkeerd aan ?
537 views