Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/26/d342392629/htdocs/wsb6023455601/ranking.php on line 31
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/26/d342392629/htdocs/wsb6023455601/ranking.php on line 44
Co jest nie tak w tym fragmencie kodu:
<?php //włączamy bufor //pobieramy zawartość pliku ustawień require_once('var/ustawienia.php'); //startujemy lub przedłużamy sesję //dołączamy plik, który sprawdzi czy napewno mamy dostęp do tej strony require_once('test_zalogowanego.php'); //pobieramy nagłówek strony require_once('gora_strony.php'); //pobieramy zawartość menu require_once('menu.php'); ?> <h2>Ranking</h2><hr/> <table id='rank'> <tr style='background:#8F8F8F;'> <th>Miejsce</th> <th>Gracz</th> </tr> <?php { $i++; if($i % 2 == 0) $styl = " style='background:#B2B2B2'"; else $styl=""; echo " <tr align='center' ".$styl."> <td>".$i."</td> <td>".$g['login']."</td> </tr>"; } $i++; if($i % 2 == 0) $styl = " style='background:#B2B2B2'"; else $styl=""; echo " <tr align='center' ".$styl."> <td>".$i."</td> <td>".$g['login']."</td> </tr>"; } //pobieramy stopkę require_once('dol_strony.php'); //wyłączamy bufor ?>