Hi Peer, ich habe jetzt nicht ganz genau verstanden was du wissen möchtest. Hier einmal ein Beispiel, das auch mit Tabellen arbeitet:
PHP-Code:
<html>
<head>
<title>News</title>
</head>
<body>
<?php
$sqlhost='localhost';
$username='xxxx';
$passwort='xxxx';
$database='xxxx';
mysql_connect ($sqlhost,$username,$passwort);
mysql_select_db ($database);
$abfrage = "SELECT * FROM news ORDER BY id DESC";
$ergebnis = mysql_query($abfrage) or die( mysql_error() );
while($row = mysql_fetch_array($ergebnis))
{
echo "<table width=500 align=center border=1 bordercolor=#000000 cellpadding=2 cellspacing=0 class=rahmen bgcolor=#e1e1e1><tr><td colspan='2' valign=top bgcolor=#c5c5c5 style='font-size:12px;'><b>" .$row["titel"] ."</b></td></tr>";
echo "<tr><td width=150 class=rahmen valign=top bgcolor=#cecece><b>Datum: </b>" .$row["datum"][8] .$row["datum"][9] ."." .$row["datum"][5] .$row["datum"][6] ."." .$row["datum"][0] .$row["datum"][1] .$row["datum"][2] .$row["datum"][3] ." - " .$row["datum"][11] .$row["datum"][12] .":" .$row["datum"][14] .$row["datum"][15] ."<br><b>Verfasser: </b><a href=mailto:" .$row["verfassermail"] .">" . $row["verfasser"] ."</a><font color=#c5c5c5>" .$row["id"] ."</font></td>";
echo "<td width=350 class=rahmen valign=top>" .$row["newstext"] ."</td></tr></table><br>";
}
?>
</body>
</html>