u mnie funkcja musi mieć taką linijkę inaczej nie będzie działać. oto funkcja:
function isAdm($username) { $sql = $pdo->query("select acces from uzytkownik where username='$username'"); $result = $sql->fetch(); if($result != 0) { $acces = TRUE; } else $acces = FALSE; return $acces; }