Witam was serdecznie, zrobiłęm sobie system newsów, lecz dodawane newsy dodają się jakby "na dole" to jest skrypt do wyświetlania:
$zapytanie = " SELECT `id`,`nazwa`,`kategoria`,`tresc`,`sumaocen`,`ocen` FROM `test` ";
if( $idzapytania = mysql_query($zapytanie) )
{
echo "
<table width='850' bgcolor='#FAFAFA' align='center'>
<tr>
<td>
<table width='500' align='left' bgcolor='#E5E5E5'>
<tr>
<td>
";
while ($wiersz = mysql_fetch_row($idzapytania))
{
echo '<table witdh="500">
<tr>
<td witdh="500">
<font size="1" color="#D0D0D0" >'. $wiersz[0] .'. </font>
<font color="#317DD3" size="4" family="Tahoma">'. $wiersz[1] .'</font>
<font size="1" color="#D0D0D0" >kategoria: <font size="2" color="#62A4DC" >'. $wiersz[2] .'. </font>
</td>
</tr>
<tr>
<td bgcolor="#F2F2F2" witdh="495" >
<font color="#BEBEBE" size="2" family="Tahoma">Tresc:'. $wiersz[3] .'
</td>
</tr>
<tr>
<td align="right" >
<a href="edytuj.php?action=edytuj&id='. $wiersz[0] .'"><font color="#317DD3" size="1" family="Tahoma">Edytuj </a>
<a href="index.php?usun_id='. $wiersz[0] .'"><font color="#317DD3" size="1" family="Tahoma">Usun </a>
</td>
</tr>
';
echo '</table>';
}
}
else
echo 'Blad zapytania: ' . mysql_error();