$sql = "SELECT * FROM `mieter` WHERE `id`='".$_GET["id"]."' LIMIT 1";
$res = mysql_query($sql);
$ds = mysql_fetch_array($res);
if(!empty($ds["branche"])){
$sql = "SELECT * FROM `branchen` WHERE `id`='".$ds["branche"]."' LIMIT 1";
$res = mysql_query($sql);
$branche = mysql_fetch_array($res);
}
$bild = "mieterpics/".$ds["bild"];
if(!is_file($bild)){
$bild = "image/blank.gif";
}
$size = getImageSize($bild);
$span = 1;
if(!empty($ds["phone"])){
$span++;
$phone = 1;
}
if(!empty($ds["mail"])){
$span++;
$mail = 1;
}
if(!empty($ds["web"])){
$span++;
$web = 1;
}
if(!empty($ds["flaeche"])){
$span++;
$flaeche = 1;
}
?>
|
if($span>1) echo "
"; ?> |
|
if($phone==1){ ?>
Telefon: |
|
}
if($mail==1){
?>
E-Mail: |
|
}
if($web==1){
?>
Website: |
|
}
if($flaeche==1){
?>
genutzte Fläche: |
|
} ?>
|