Kod
if (mysql_num_rows($results)) {
echo "<div class=\"class1\">\n";
while ($row = mysql_fetch_array($results)) {
echo "<span class=\"date\">" .
date('j', strtotime($row['date'])) . strftime(' %B %Y', strtotime($row['date'])) .
"</span>\n";
echo "<p class=\"body\">\n" .
$row['body'] .
"\n</p>\n";
echo '<a href="compose.php?a=edit&id=' . $row['news_id'] . '"> edytuj </a>';
}
}