sprawdziłem i w po prostu tutaj zapomniałem, w kodzie gra. Tutaj kolejna odsłona. Obydwa działają dopiero po odświeżeniu strony. Przy wpisaniu adresu strony i "enternięciu" nie bangla.
<?php
if (!$conn) {
}
echo "<td width=\"23%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' order by id desc limit 1";
$id1=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$id1\">".$ile["nazwa"]."</a></b></td>"; }
$id2=$id1-1;
$id3=$id2-1;
$id4=$id3-1;
$id5=$id4-1;
$id6=$id5-1;
$id7=$id6-1;
$id8=$id7-1;
$id9=$id8-1;
echo "<td width=\"24%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' and id=$id2 order by id desc limit 1";
$idx2=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$idx2\">".$ile["nazwa"]."</a></b></td>"; }
echo "<td width=\"24%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' and id=$id3 order by id desc limit 1";
$idx3=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$idx3\">".$ile["nazwa"]."</a></b></td>"; }
echo "<td width=\"23%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' and id=$id4 order by id desc limit 1";
$idx4=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$idx4\">".$ile["nazwa"]."</a></b></td>"; }
echo "<td width=\"24%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' and id=$id5 order by id desc limit 1";
$idx5=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$idx5\">".$ile["nazwa"]."</a></b></td>"; }
echo "<td width=\"24%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' and id=$id6 order by id desc limit 1";
$idx6=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$idx6\">".$ile["nazwa"]."</a></b></td>"; }
echo "<td width=\"23%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' and id=$id7 order by id desc limit 1";
$idx7=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$idx7\">".$ile["nazwa"]."</a></b></td>"; }
echo "<td width=\"24%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' and id=$id8 order by id desc limit 1";
$idx8=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$idx8\">".$ile["nazwa"]."</a></b></td>"; }
echo "<td width=\"24%\" height=\"165\">"; $zapyt="select id, nazwa, header from art where na_str='galeria' and id=$id9 order by id desc limit 1";
$idx9=$ile["id"];
echo "<p align=\"center\"><b><a href=\"show.php?id=$idx9\">".$ile["nazwa"]."</a></b></td>"; }
?>
naprawde nikt nie ma pomysłu ?