\n";
for ($columns = 0; $columns < $fields_amt; $columns++) {
$data[$columns] = mysql_result($result,$rows,$columns);
if ($columns == 0) {
$jahr = substr($data[$columns],0,4);
$monat= substr($data[$columns],5,2);
$tag = substr($data[$columns],8,2);
$tagname = date("l", mktime(0,0,0,$tag,$monat,$jahr));
echo "\n\n\n";
echo "\n";
include "../layouts/fonttag.php3";
echo "$tag.$monat.$jahr"; echo "\n";
}
if ($columns == 1) {
$title = $data[$columns];
$title = str_replace("\\", "", $title);
include "../layouts/fonttag.php3";
echo "$title"; echo "\n";
echo " | \n";
}
if ($columns == 2) {
$text = $data[$columns];
$text = str_replace("\\", "", $text);
if (! strstr($text, "<")) {
$text = str_replace("\n", " ", $text);
}
echo "";
include "../layouts/fonttag.php3";
echo "\n"; echo "";
echo " $text"; echo "\n";
echo " | "; echo "\n";
}
if ($columns == 3 && $data[$columns]) {
if (file_exists ("diary_images/$data[$columns]")) {
$size = GetImageSize("diary_images/$data[$columns]");
$width = $size[0];
$height = $size[1];
include "../layouts/fonttag.php3";
echo"** das bild dazu **"; echo "\n";
echo ""; echo "\n";
} else {
echo " [bild nach server-umzug nicht gefunden..]";
}
echo " | "; echo "\n";
}
if ($columns == 4) {
echo "\n";
include "../layouts/fonttag.php3";
echo "eintrag geschrieben von: \n$data[$columns]"; echo "\n";
echo " ";
echo " | \n";
}
}
echo "\n |