Warning: A non-numeric value encountered in /home/speakplayni/ftp/index.phpon line 96 Warning: A non-numeric value encountered in /home/speakplayni/ftp/index.phpon line 96 Fatal error: Uncaught Error: Call to undefined function mysql_close() in /home/speakplayni/ftp/index.php:133 Stack trace: #0 {main} thrown in /home/speakplayni/ftp/index.phpon line 133
Czy ktos mogl by mi pomoc to rozwiazac ? To jest index.php:
<?php include ("inc/header.html"); require ("config.php"); ?> <div class="container"> <div class="row"> <br><br> <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2"> <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.php"><i class="fa fa-home"></i> Home</a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2"> <ul class="nav navbar-nav"> <li><a href="#">Sklep <span class="sr-only">(current)</span></a></li> <li><a href="yt.php">Nasi YouTuberzy</a></li> <li><a href="administracja.php">Administracja</a></li> <li><a href="faq.php">FAQ</a></li> </ul> <ul class="nav navbar-nav navbar-right bold"> <li><a href="kontakt.php">Kontakt</a></li> </ul> </div> </div> </nav> <ul class="breadcrumb"> <li><a href="index.php"><i class="fa fa-home text-black"></i> Home</a></li> <li class="active">AktualnoÅ›ci</li> </ul> <div class="pulpit"> <div class="row"> <div class="col-md-9"> <div class="page-header"> <h2><i class="pull-right fa fa-newspaper-o"></i> AktualnoÅ›ci</h2> </div> <?php $polaczenie = mysqli_connect ($host, $login, $haslo, $baza); if (mysqli_connect_error()){ die("<div class='alert alert-dismissible alert-danger'><strong><i class='fa fa-exclamation-triangle'></i> BÅÄ„D:</strong> Nie można nawiÄ…zać poÅ‚Ä…czenia z bazÄ… MYSQL. Najprawdopodobniej zÅ‚e dane <br> Dane: <br> Host: {$host} .<br> Login: {$login}. <br> HasÅ‚o: *-*.<br> Baza: {$baza}.</div> <br> "); } if ($wynik = mysqli_query ($polaczenie, "SELECT * FROM `news` ORDER BY nr DESC")){ while ($rekord = mysqli_fetch_assoc ($wynik)) { echo "<p class='text-center'><b>".$rekord['tytul']."</b></p>"; echo "<p>".$rekord['tresc']."</p>"; echo "<p class='text-right'><i>".$rekord['data']."</i> Autor: <b>".$rekord['nick']."</b></p>\n<br>"; } } ?> </div> <div class="col-md-3"> <?php if(empty($ping['error'])) { echo "<div class=\"panel panel-success\"><div class=\"panel-heading\"><center><h3 class=\"panel-title\"><i class=\"icon-ok-sign\"></i> Serwer jest wÅ‚Ä…czony</h3></center></div>"; } else { echo "<div class=\"panel panel-danger\"><div class=\"panel-heading\"><center><h3 class=\"panel-title\"><i class=\"icon-ok-sign\"></i> Serwer jest wyÅ‚Ä…czony</h3></center></div>";}?> <div class="panel-body"> <p><b>IP:</b> <?php echo "".$SERVER_IP."";?> </p> <p><b>Gracze online:</b> <?php echo "".$online." / ".$max."";?></p> <div class="progress progress-striped active"> <div class="progress-bar" style="width: <?php echo $online ?>%"></div> </div> <?php if($HEADS == "3D") { $url = "https://mcapi.ca/avatar/3d/"; } else { $url = "https://mcapi.ca/avatar/2d/"; } if(empty($query['error'])) { if($playerlist != "") { $shown = "0"; foreach ($playerlist as $player) { $shown++; if($shown < $show_max + 1 || $show_max == "unlimited") { ?> <a data-placement="top" rel="tooltip" style="display: inline-block;" title="<?php echo $player;?>"> <? if($player == "TheMatieusz") { $player = "dynemo_"; } ?> <img src="<?php echo $url.$player;?>/50" size="40" width="40" height="40" style="width: 40px; height: 40px; margin-bottom: 5px; margin-right: 5px; border-radius: 3px;"/></a> <?php } } if($shown > $show_max && $show_max != "unlimited") { echo '<div class="span8" style="font-size:16px; margin-left: 0px;">'; echo "and " . (count($playerlist) - $show_max) . " wiÄ™cej ..."; echo '</div>'; } } else { echo "<p>Nie ma graczy na serwerze</p>"; } } else { echo "<p>Serwer jest prawdopodobnie wyÅ‚Ä…czony</p>"; } mysql_close($polaczenie); ?> </div> </div> <div class="panel panel-warning"> <div class="panel-heading"> <h3 class="panel-title">CoÅ› tam tam[...]</h3> </div> <div class="panel-body"> [...] </div> </div> <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title">I jeszce coÅ› tam tam</h3> </div> <div class="panel-body"> i tutaj jeszcze coÅ› </div> </div> </div> </div> <div class="panel-footer text-center">StronÄ™ wykonaÅ‚ <b>Lapos</b> dla <b><?php echo $stopka; ?></b></div> </div> <br> </div> </div> </body> <html>
Zobacz więcej