
WCZESNIEJSZY KOD
</td>
<td width="520"><table border="1" cellspacing="0" cellpadding="0">
<tr>
<td class="tdmdl" align="left" valign="top">
<div class="naglowek" ><strong>Aktualności</strong></div>
<?
$db2 = mysql_connect("***.***.****.**", "***", "*******");
mysql_select_db("wwf", $db2) ;
$sql2 = "SELECT * FROM news order by id desc limit 3";
$result2 = mysql_query($sql2);
$i=1;
while ($row2[$i] = mysql_fetch_array($result2)) {
printf("<div class=\"tdtxt-szary11\" align=\"left\" valign=\"top\"><span style=\"color:#BABABA;\"><strong><br>%s", $row2[$i]["data"]);
printf("</strong></span><br>");
printf("<div class=\"tdtxt-szary11\"><span><strong>%s", $row2[$i]["tytul"] );
printf("</strong></span><br>");
printf("<BR><div class=\"tdtxt-szary11\" align=\"left\" valign=\"top\"><img src=\"img/Tu chcialbym zeby wstawiala sie nazwa pliku z bazy\" width=\"151\" height=\"85\" align=\"left\" vspace=\"0\" hspace=\"0\"><img src=\"trans.gif\" width=\"2\" height=\"85\" align=\"left\" vspace=\"0\" hspace=\"5\">%s" ,$row2[$i]["naglowek"]);
$nr = $row2[$i]["id"];
printf("<div align=\"left\"><a href=\"wiadomosci.php?idn=$nr\"><img src=\"img/wiecej.gif\" alt=\"\" width=\"37\" height=\"11\" vspace=\"5\" border=\"0\"></a></div><br>");
$i++;
}
?>
RESZTA STRONY
Gdyby byly co jeszcze potrzebne to prosze o kontakt, to dosle...
a tak wogole to dzieki bardzo, i wiem pewnie jestem idiota