Tel: 01226 711470
Quick Search
Calculators
These financial calculators have been developed for your interest only and must not be used to make financial decisions.
ini_set("display_errors","1");
error_reporting("E_ALL");
?>
$dbCalc = new Connection();
//echo "req=".$_REQUEST['p'];
if(isset($_REQUEST['p']))
{
$cmsId = $this->get_template_vars("cmsId");
}
else
{
$cmsId = 0;
}
//this is applied for www.webpro-calculator.co.uk on 10 sept 14 as per Anton discussion
$cmsId = $this->get_template_vars("cmsId");
//echo "SELECT available_calcs FROM calculator_clientConfig WHERE cms_id = ".$cmsId." AND active =1";
$dbCalc->execute("SELECT available_calcs FROM calculator_clientConfig WHERE cms_id = ".$cmsId." AND active =1");
//$dbCalc->execute("SELECT available_calcs FROM calculator_clientConfig WHERE cms_id = 256 AND active =1");
//echo "SELECT available_calcs FROM calculator_clientConfig WHERE cms_id = ".$cmsId." AND active =1";
$arrListResult = $dbCalc->fetchArray();
$intListNumber =$dbCalc->numberOfRows();
if($arrListResult['available_calcs']=="")$intListNumber=0;
if($intListNumber ==1)
{
$dbCalc->execute("SELECT * FROM calculator_calcConfig WHERE calculator_id IN (".$arrListResult['available_calcs'].") AND active =1");
$intCalcsNumber = $dbCalc->numberOfRows();
//echo "SELECT * FROM calculator_calcConfig WHERE calculator_id IN (".$arrListResult['available_calcs'].") AND active =1";
if($intCalcsNumber !=0)
{
while($arrCalcsResult = $dbCalc->fetchArray())
{
if(isset($_GET['tag']))
{
if($_GET['tag'] == $arrCalcsResult['calculator_tag'])
{
echo "";
}
}
echo "";
echo $arrCalcsResult['calculator_name']."
"; $arrCalcFile[] = $arrCalcsResult['calculator_file_name']; } } } ?>
if($intListNumber ==0) echo "
"; $arrCalcFile[] = $arrCalcsResult['calculator_file_name']; } } } ?>
if($intListNumber ==0) echo "
Sorry there are no calculators available at this time.
";
?>
These financial calculators have been developed for your interest only and must not be used to make financial decisions.