Thank you for your reply. This is the PHP Code:
-------
$Attr2C = array(
1 => 'hotel',
2 => 'caravan',
3 => 'caravan',
4 => 'camping',
5 => 'caravan',
6 => 'hotel',
7 => 'caravan',
8 => 'caravan',
9 => 'caravan',
10 => 'hotel',
11 => 'caravan',
12 => 'hotel',
);
$code = value('DC07');
$TwoC = $Attr2C[$code];
replace ('%Attr2C%', $TwoC);
------
I cannot find the error...