Kod PHP:
<?php function pokaz_link() { $link = new mysqli('localhost', 'k', 'k', 'k'); if (! $link) return false; $link->autocommit(TRUE); return $link; } $link = pokaz_link(); $zap = "select link from Linki"; $wynik = $link->query($zap); $ile= $wynik->num_rows; for ($i=0; $i <$ile; $i++) { $wiersz = $wynik->fetch_assoc(); } ?>
a oto bład przy testowaniu skryptu:
Not Found
The requested URL /Strona/Prywatne/http://forum.php.pl was not found on this server.