I think that whole code needs a rethink. Why not use css to the background picture also? (not background="blaablaa.jpg"). Also this is job for a switch statement
How about:
<?php
$festival = date('n'); // Use n instead of m. No leading zeros.
switch($festival) {
case 1:
$bg = 'cny2.gif';
break;
case 6:
$bg = 'agung.jpg';
break;
case 8:
$bg = 'merdeka.jpg';
break;
case 9:
$bg = 'hari_raya2.jpg';
break;
case 10:
$bg = 'deepavali2.gif';
break;
case 12:
$bg = 'christmas2.jpg';
break;
default:
$bg = 'klcc1.jpg';
break;
}
echo '<body style="background: #CCFFFF url('.$bg.');">';
?>
Or with array:
$festival = date('n'); // Use n instead of m. No leading zeros.
$p = array( 1 =>'cny2.gif',
6 =>'agung.jpg',
8 =>'merdeka.jpg',
9 =>'hari_raya2.jpg',
10=>'deepavali2.gif',
12=>'christmas2.jpg');
if (array_key_exists($festival,$p))
$bg = $p[$festival];
else
$bg = 'klcc1.jpg';
echo '<body style="background: #CCFFFF url('.$bg.');">';