<?php
$Error = 'False' ;
$sqlCombiWHERE = " ";
$report = $_GET['report']; // report name/template
if($_GET[Type] == "stable") {
$sort = ", 2010Combination.stableNumber ";
}
elseif($_GET[Type] == "combination")
{
$sort = ", 2010Combination.compNumber ";
}
elseif($_GET[Type] == "nocell")
{
$sqlCombiWHERE = " WHERE 2010Combination.cellGroom IS NOT NULL ";
$sort = " ";
}
else {
$Error = 'True';
}
?>
Het script wordt als volgt aangeroepen:
script.php?Stables&stable|combination|nocell
Vraag, is dit de juiste werkwijze??