Code:
//I call this page either with an "index.php?a=calc&orderid=$1&raid=$2
//or index.php?a=calc&pack=$1
// it is simple if there is no 'pack' in the call get $packId from the database
// for some reason the line //1 this line
// gets run even if $raid is not set
// does parent::getHTTPVars create a special variable that cant be set?
//I call this page with a 'pack=7' which makes the if
// not valid but it displays pack=11 which is not getting from the database
// but if I get rid of //1 this line then it displays pack=7
$packId = parent::getHTTPVars('pack', 'GET');
$raid = parent::getHTTPVars('raid', 'GET');
$orderid = parent::getHTTPVars('orderid', 'GET');
if (isset($raid)) {
$reorder = $mysql->assoc("SELECT * FROM `orders` WHERE id='".$orderid."' AND size='".$raid."'");
$packId=$reorder[$orderid]["type"]; //1 this line does not work
print_r($raid);
};
print_r($packId);