$result = mysql_query("SELECT DATE_FORMAT(`in_date`, '%d.%m.%Y' ) AS `out_date`, headline, conntent, pic FROM news WHERE uid = '".$uid."';");
while($row = mysql_fetch_assoc($result)){
echo "<br><table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td colspan='2' valign='top'><span class='h2'><b>". $row['out_date'] ."</b></span></td>
<td width='82%' valign='top'><span class='h2'><b>". $row['headline'] ."</b></span></td>
</tr>
<tr>
<td width='40' rowspan='2' align='center' valign='top'><br>";
if ( $pic = "" ) {} else
{
echo "<p><img src=\"./news-pics/" . mysql_result($result,$counter,'pic') . "\" border=\"1\" /></p>";
}
echo "</td>
<td width='43'> </td>
<td> </td>
</tr>
<tr>
<td colspan='2'><span class='content'>". nl2br($row['conntent']) ."<br><br><a href='news.php'>Zurück</a></span></td>
</tr>
</table>";
}
?>