Nachrichten";} if($lang=="GB"){echo "

News

";} echo ""; $today = date("Y-m-d"); $result=mysql_query("select * from ppo_home where hom_publish = 'yes' order by hom_date desc") or die(mysql_error()); while($row = mysql_fetch_array($result)) { $hom_id = $row["hom_id"]; $hom_head_de = $row["hom_head_de"]; $hom_text_de = $row["hom_text_de"]; $hom_head_gb = $row["hom_head_gb"]; $hom_text_gb = $row["hom_text_gb"]; $hom_date = $row["hom_date"]; $date = explode("-", "$hom_date"); $day = $date[2]; $month = $date[1]; $year = $date[0]; if($month=="01"){$month_name = "Jan";} if($month=="02"){$month_name = "Feb";} if($month=="03"){$month_name = "Mar";} if($month=="04"){$month_name = "Apr";} if($month=="05"){$month_name = "May";} if($month=="06"){$month_name = "Jun";} if($month=="07"){$month_name = "Jul";} if($month=="08"){$month_name = "Aug";} if($month=="09"){$month_name = "Sep";} if($month=="10"){$month_name = "Oct";} if($month=="11"){$month_name = "Nov";} if($month=="12"){$month_name = "Dec";} $date_de = "$day.$month.$year"; $date_gb = "$day $month_name $year"; $filename = '../media/home/$hom_id.jpg'; if(file_exists($filename)){$image ="";} else{$image = "";} if($lang=="DE"&&$hom_text_de!=""){echo "";} if($lang=="GB"&&$hom_text_gb!=""){echo "";} } echo "
$date_de
$image

$hom_head_de

$hom_text_de
$date_gb
$image

$hom_head_gb

$hom_text_gb
"; ?>