Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: erroas su index.php

Parašė Kywis· 2010 Gru. 17 20:12:28
#1

Va toks: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /usr/home/www1/ftp/Kywis00/index.php on line 130

kaip istaisyt ji?


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <title>L2Mellero Epilogue</title>
  <link rel="StyleSheet" href="style.css" type="text/css" media="screen">
</head>
<body>
<table
 style="width: 940px; text-align: center; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td style="text-align: center;"><img src="images/header.png"
 alt=""></td>
    </tr>
  </tbody>
</table>
<table
 style="width: 900px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="0" cellspacing="5">
  <tbody>
    <tr>
    </tr>
    <tr>
    </tr>
    <tr>
      <td style="width: 160px; vertical-align: top;">
      <table style="width: 200px; height: 28px;" class="moduletable"
 cellpadding="1" cellspacing="1">
        <tbody>
          <tr>
            <td>
            <div
 style="margin: 0px auto; width: auto; text-align: center;">
            <div class="pirmas">
            <table
 style="width: 175px; text-align: center; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="2" cellspacing="2">
              <tbody>
                <tr>
                  <td><br>
<font color=#FFFFFF>
<br>*Client
<br>
<small>
<br>Gracia Epilogue T2-E
</small>
<br>
<br>*Rates
<br>
<small>
<br>XP: 2000x
<br>SP: 2000x
<br>ADENA: 2000x
<br>SPOIL: 2000x
</small>
<br>
<br>*Enchant
<br>
<small>
<br>Simple: 75%
<br>Blessed: 85%
<br>Crystal: 100%
</small>
<br>
<br>*Custom
<br>
<small>
<br>Custom Items
<br>Custom Zones
<br>Custom Clans System
<br>Custom Gm Shop
<br>Custom Buffer
<br>Custom Teleporter
<br>And etc...
</small>
<br>
<br>*Downloads
<br>
<small>
<br>Server System
<br>Server Textures
</small>
</font></td>
                </tr>
              </tbody>
            </table>
            <br>
            <br>
            </div>
            </div>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      </td>
      <td class="body_outer"
 style="width: 500px; vertical-align: top; margin-left: 10px; margin-right: 10px;">
      <table style="text-align: left; width: 300px;" border="0"
 cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td>
            <div class="ka_neturiu"></div>
            </td>
          </tr>
          <tr>
            <td>
            <div class="prapisau">
            <div style="text-align: center;"> </div>
            <table
 style="width: 470px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="2" cellspacing="2">
              <tbody>
                <tr>
                  <td style="text-align: center;"><td>
<?php

   require_once("config.php");
   
   $sql = "SELECT char_name, pvpkills FROM characters ORDER BY pvpkills DESC LIMIT 5";
   $query = mysql_query($sql);
   
   echo "<table align='center' style='border: 0px solid #aeaeae;'>";
   echo "<tr><td></td><td><font color=#FFFFFF>*Top&nbsp;10&nbsp;PvP</td></tr>";
   echo "<tr><td align='center'><small><b><font color=#FFFFFF>Vieta</font></b></small></td><td align='center'><small><b><font color=#FFFFFF>Nick</b></td><td align='center'><small><b><font color=#FFFFFF>PVP</b></small></td></tr>";
   
   $i = 0;
   while($row = mysql_fetch_array($query))
   {
      $i++;
      $char_name = $row['char_name'];
      $top = $row['pvpkills'];
      
      echo "<tr><td align='center'><small><font color=#FFFFFF>$i</small></td><td align='center'><small><font color=#FFFFFF>$char_name</small></td><td align='center'><small><font color=#FFFFFF>$top</small></td></tr>";
   }
   
   echo "</table>";

?>
</td><br>
<td>
<?php

   require_once("config.php");
   
   $sql = "SELECT char_name, pkkills FROM characters ORDER BY pkkills DESC LIMIT 5";
   $query = mysql_query($sql);
   
   echo "<table color='FFFFFF' align='center' style='border: 0px solid #aeaeae;'>";
   echo "<tr><td></td><td><font color=#FFFFFF>*Top&nbsp;10&nbsp;PK</td></tr>";
   echo "<tr><td align='center'><small><b><font color=#FFFFFF>Vieta</b></small></td><td align='center'><small><b><font color=#FFFFFF>Nick</b></small></td><td align='center'><small><b><font color=#FFFFFF>PK</b></small></td></tr>";
   
   $i = 0;
   while($row = mysql_fetch_array($query))
   {
      $i++;
      $char_name = $row['char_name'];
      $top = $row['pkkills'];
      
      echo "<tr><td align='center'><small><font color=#FFFFFF>$i</small></td><td align='center'><small><font color=#FFFFFF>$char_name</small></td><td align='center'><small><font color=#FFFFFF>$top</small></td></tr>";
   }
   
   echo "</table>";


?>
</td></td>
                </tr>
              </tbody>
            </table>
            <br>
            </div>
            </td>
          </tr>
          <tr>
            <td>
            <div class="ko_neturi"></div>
            </td>
          </tr>
       
          <tr>
            <td>
            <center><a href="http://www.grandvps.lt/"><img src="images/grandvps.lt.png" border="0" alt="Grandvps.lt"></a></center>
         <div class="eik_tu_nx"><br>
            <table
 style="width: 460px; height: 55%; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="2" cellspacing="2">
              <tbody>
                <tr>
                  <td style="text-align: center;"><a href="index.php">
<img style="border: 0px solid ; width: 24px; height: 24px;" src="images/namai.png" alt="">
<font color=#FFFFFF><small>*Main</small></font></a>
<a href="/forum/">
<img style="border: 0px solid ; width: 24px; height: 24px;" src="images/forum.png" alt="">
<font color=#FFFFFF><small>*Forum</small></font></a>
<a href="information.php">
<img style="border: 0px solid ; width: 24px; height: 24px;" src="images/informacija.png" alt="">
<font color=#FFFFFF><small>*Info</small></font></a>
<a href="files.php">
<img style="border: 0px solid ; width: 24px; height: 24px;" src="images/siuntiniai.png" alt="">
<font color=#FFFFFF><small>*Files</small></font></a>
<a href="accaunt.php">
<img style="border: 0px solid ; width: 24px; height: 24px;" src="images/komanda.png" alt="">
<font color=#FFFFFF><small>*Accaunt</small></font></a>
<a href="/donate/">
<img style="border: 0px solid ; width: 24px; height: 24px;" src="images/donate.png" alt="">
<font color=#FFFFFF><small>*Donate</small></font></td></a>
                </tr>
              </tbody>
            </table>
            <br>
            </div>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <table style="text-align: left; width: 300px;" border="0"
 cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td>
            <div class="ka_neturiu"></div>
            </td>
          </tr>
          <tr>
            <td>
            <div class="prapisau">
            <div style="text-align: center;"> </div>
            <table
 style="width: 470px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="2" cellspacing="2">
              <tbody>
                <tr>
                  <td style="text-align: center;"><font color=#FFFFFF>*News
<br>
<br>
<small><center>
<?PHP
$number=4;
$category=3;
include("cutenews/show_news.php");
?>
<br></center>
<br>
<br>
<br>
Copyright 2009 - 2010 www.l2mellero.wu.lt
</small>
</font></td>
                </tr>
              </tbody>
            </table>
            </div>
            </td>
          </tr>
          <tr>
            <td>
            <div class="ko_neturi"></div>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      </td>
      <td valign="top" width="200">
      <table style="width: 200px; height: 24px;" class="moduletable"
 cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td>
            <div class="kiesa_sako">
            <table
 style="width: 175px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="2" cellspacing="2">
              <tbody>
                <tr>
                  <td><br>
                  <div style="text-align: center;"><br><font color=#FFFFFF>*Server</font>
<br>
<small>
<?php function server_status()
{
error_reporting(0);
$Sip = '82.135.231.116';
$Lport = '2106';
$Gport = '9014';
$login = fsockopen($Sip, $Lport, $errno, $err, 0.5);
if($login)
{
print "<BR><font color=#FFFFFF>Login: </font><font color=#00FF00>Online</font>&nbsp;";
}
else
{
print "<BR><font color=#FFFFFF>Login: </font><font color=#d90500>Offline</font>&nbsp;";
}
$game = fsockopen($Sip, $Gport, $errno, $err, 0.5);
if($game)
{
print "<BR><font color=#FFFFFF>Game: </font><font color=#00FF00>Online</font>&nbsp;";
}
else
{
print "<BR><font color=#FFFFFF>Game: </font><font color=#d90500>Offline</font>&nbsp;";
}
}
print server_status();
?>
</small>
<br>
<br>
<center>
&nbsp;&nbsp;<a href="http://www.l2mellero.wu.lt/donate/"><img src="images/donate1.png" border="0" alt="l2jtop.lt"></a>
<br></center>
<br><font color=#FFFFFF>*Vote For Us</font>
<br>
<small>
<br>
<a href="http://www.l2jtop.lt/vote-5.html"><img src="http://www.l2jtop.lt/b-img/img-5.png" border="0" alt="l2jtop.lt"></a>
<br>
<br>
<div
 style="text-align: center; margin-left: 0px;">
<script type="text/javascript"
 src="swfobject.js"></script></div>
<div
 style="text-align: left; margin-left: 46px;" id="flashPlayer">Prasome
isirasyti Flash playeri.
</div>
<script type="text/javascript">
var so = new SWFObject("playerMini.swf", "mymovie", "75", "30", "7", "#FFFFFF");
so.addVariable("autoPlay", "yes");
so.addVariable("soundPath", "song.mp3");
so.write("flashPlayer")</script>

<br></div>
                  </td>
                </tr>
              </tbody>
            </table>
            <br>
            </div>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
<br>
</body>
</html>




Redagavo Kywis· 2010 Gru. 17 21:12:36