Hello all,
I'm having trouble with the following bit of code. After having changed the .php extensions to .gym (using .htaccess) including BusinessObject.gym seems to mess everything up.
Here's the code:
<?php
require_once 'includes/DbConnector.gym';
require_once 'includes/BusinessObject.gym';
$connector = new DbConnector();
if (isset($_GET['lidID']) && isset($_GET['functieID'])) {
$lidID = (get_magic_quotes_gpc()) ? $_GET['lidID'] : addslashes($_GET['lidID']);
$functieID = (get_magic_quotes_gpc()) ? $_GET['functieID'] : addslashes($_GET['functieID']);
//haal functiegegevens
$query = sprintf("SELECT concat(familienaam, ' ', voornaam) as naam, functie FROM lid l, functie f, functies s WHERE f.lidID='%s' AND f.lidID=l.lidID AND f.functieID='%s' AND f.functieID=s.functieID", $lidID, $functieID);
$result = $connector->query($query);
$rij = $connector->fetchArray($result);
$verwijderen = $_POST['verwijderen'];
if ($verwijderen == "1") {
$bo = new BusinessObject();
$bo->verwijderFunctie($lidID, $functieID);
if ($functieID == "1") { //lesgever
$bo->verwijderLesgever($lidID);
$bo->verwijderOpdrachten($lidID);
}
if ($functieID == "2") { //bestuurslid
$bo->verwijderBestuurslid($lidID);
}
header("location:lidgegevens.gym?lidID=$lidID");
}
} else {
echo "Het systeem kan geen functiegegevens tonen";
}
?>
I'm sure the problem has to do with the BusinessObject.gym, because the rest works fine when I comment the parts related to that out.
It used to werk perfectly before, and the problem isn't inside BusinessObject.php either if you ask me
Any ideas? Thanks a lot
wikstov