Kann mir jemand helfen?
Bekomme bei Xpress folgende Fehlermeldung, wenn ich eine Auktion ändern will.....
Fatal error: Cannot redeclare print_money() (previously declared in /home/www/htdocs/pieset.de/includes/currency.inc.php:14) in /home/www/htdocs/pieset.de/includes/currency.inc.php on line 14
Der Code sieht so aus:
<?
$currency ="Euro";
if($MONEY_FORMAT == 1)
{
function print_money($str){
global $currency, $MONEY_SYMBOL_POS, $MONEY_DECIMALS;
if($MONEY_SYMBOL_POS == "R")
{
return number_format($str,$MONEY_DECIMALS,".",",") . " " . $currency;
}
elseif($MONEY_SYMBOL_POS == "L")
{
return $currency . " " . number_format($str,$MONEY_DECIMALS,".",",");
}
}
}
elseif($MONEY_FORMAT == 2)
{
function print_money($str){
global $currency, $MONEY_SYMBOL_POS, $MONEY_DECIMALS;
if($MONEY_SYMBOL_POS == "R")
{
return number_format($str,$MONEY_DECIMALS,",",".") . " " . $currency;;
}
elseif($MONEY_SYMBOL_POS == "L")
{
return $currency . " " . number_format($str,$MONEY_DECIMALS,",",".");
}
}
}
function input_money($str){
global $currency;
$str = ereg_replace("[^0-9\.]","",$str);
return $str;
}
?>
Danke für die Hilfe....
Bekomme bei Xpress folgende Fehlermeldung, wenn ich eine Auktion ändern will.....
Fatal error: Cannot redeclare print_money() (previously declared in /home/www/htdocs/pieset.de/includes/currency.inc.php:14) in /home/www/htdocs/pieset.de/includes/currency.inc.php on line 14
Der Code sieht so aus:
<?
$currency ="Euro";
if($MONEY_FORMAT == 1)
{
function print_money($str){
global $currency, $MONEY_SYMBOL_POS, $MONEY_DECIMALS;
if($MONEY_SYMBOL_POS == "R")
{
return number_format($str,$MONEY_DECIMALS,".",",") . " " . $currency;
}
elseif($MONEY_SYMBOL_POS == "L")
{
return $currency . " " . number_format($str,$MONEY_DECIMALS,".",",");
}
}
}
elseif($MONEY_FORMAT == 2)
{
function print_money($str){
global $currency, $MONEY_SYMBOL_POS, $MONEY_DECIMALS;
if($MONEY_SYMBOL_POS == "R")
{
return number_format($str,$MONEY_DECIMALS,",",".") . " " . $currency;;
}
elseif($MONEY_SYMBOL_POS == "L")
{
return $currency . " " . number_format($str,$MONEY_DECIMALS,",",".");
}
}
}
function input_money($str){
global $currency;
$str = ereg_replace("[^0-9\.]","",$str);
return $str;
}
?>
Danke für die Hilfe....
Kommentar