$value){ $result = mysql_query ('' . 'UPDATE tblsettings SET value=\'' . $value . '\' WHERE setting=\''.$key.'\''); } } } ////////////////////////////////////////////////////////////////////////////////// function format_as_currency ($amount){ $amount += 9.99999999999999954748112e-07; $amount = round ($amount, 2); $amount = sprintf ('%01.2f', $amount); return $amount; } ////////////////////////////////////////////////////////////////////////////////// function OptionSelected($a,$b){ if($a==$b){ return " selected"; } } ////////////////////////// function check_me($a,$b){ if($a==$b){ return " selected"; } } ////////////////////////// function OptionChecked($a,$b){ if($a==$b){ return " checked"; } } ////////////////////////// function dropOptions($Arr,$selected){ if(is_array($Arr)){ $xx=""; foreach($Arr as $key=>$value){ $xx.= '