Register for your free account! | Forgot your password?

You last visited: Today at 01:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Problem Itemshop.php

Discussion on Problem Itemshop.php within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 26
Join Date: May 2010
Posts: 865
Received Thanks: 767
Problem Itemshop.php

Jojo Epvp,
ich hab ein kleines Problem mit meinem Itemshop Script.
Undzwar:

PHP Code:
Warningmysql_fetch_object(): supplied argument is not a valid MySQL result resource in /var/customers/webs/ni104921_1/pages/itemshop.php on line 13 
Das ist meine Itemshop.php:
PHP Code:
<?PHP

  
if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
 
?>
<div class="con-top">Itemshop</div>
<div align="center">
<div class="con-mid">
<b>
      <?PHP
        $sqlCmd 
"SELECT * FROM ".SQL_HP_DB.".is_kategorien ORDER BY titel ASC;";
        
$sqlQry mysql_query($sqlCmd,$sqlHp);
        echo 
'<a href="index.php?s=itemshop">Alle</a><br> ';
        while(
$getKats mysql_fetch_object($sqlQry)) {
          echo
'<a href="index.php?s=itemshop&k='.$getKats->id.'">'.$getKats->titel.'</a> ';
        }
      
?>
      </b>
</div>
</div>
<?PHP 
 
echo '<div id="content_top"><h2>Itemshop</h2></div>
            <div id="content_main"><div class="con-wrapper">'

    if(isset(
$_GET['k']) && checkInt($_GET['k'])) {
      
$sqlCmdS="SELECT * FROM ".SQL_HP_DB.".is_items WHERE kategorie_id='".$_GET['k']."' ORDER BY id DESC";
    }
    else {
      
$sqlCmdS="SELECT * FROM ".SQL_HP_DB.".is_items ORDER BY id DESC";
    }
  
?>
  <div id="isleft">
  </div>
    <?PHP
      $sqlQry
=mysql_query($sqlCmdS,$sqlHp);
      while(
$getItems=mysql_fetch_object($sqlQry)) {
        
$aktItem compareItems($getItems->vnum);
        
$itemStufe = (checkInt($aktItem['stufe'])) ? "+".$aktItem['stufe'] : '';
        
?>
        <table id="itemshop">
        <tr>
          <th colspan="2" class="topLinee"><?PHP echo convertEncoding(ItemName($getItems->vnum)); ?> (<b><?PHP echo $getItems->preis?> Coins</b>)</th>
        </tr>
        <tr>
          <td class="isImg">
            <?PHP 
             
if (file_exists("./is_img/".MakeItemImage($getItems->vnum).".png")){ echo'<img src="./is_img/'.MakeItemImage($getItems->vnum).'.png" title="'.$aktItem['item'].'" alt="'.$aktItem['item'].'"/>'; }
             else{echo
'<img src="./is_img/fail.png"/>';}
            
?>
          </td>
          <td class="tdunkell"><?PHP echo ''.convertEncoding($getItems->beschreibung).'';?></td>
        </tr>
        <tr>
          <td colspan="2" class="isBuy"><a href="index.php?s=is_buy&id=<?PHP echo $getItems->id?>">Kaufen</a></td>
        </tr>
        </table><br/>
        <?PHP
      
}
    
?> 
  <?PHP
  
}
  else {
   echo 
'<div id="content_top"><h2>Itemshop</h2></div>
            <div id="content_main"><div class="con-wrapper">'

    echo
'<p class="meldung">Sie müssen für diesen Bereich angemeldet sein.</p>';
  }
?>
</div>
</div>
<div class="con-bot"></div>
Ich weiß nicht woran es liegen könnte , ich hoffe jemand kann mir helfen
Dr.Sonii# is offline  
Reply


Similar Threads Similar Threads
Itemshop Problem
05/28/2013 - Metin2 Private Server - 16 Replies
http://i.epvpimg.com/Tehic.png Bei den meisten items kommt das.... kann mir bitte jemand helfen? Mein itemshop lager ist nicht voll bitte.... wenn mir jemanden helfen kann gebe ich e gold denjenigen :) #Push
Problem mit Itemshop
03/05/2011 - Metin2 Private Server - 0 Replies
Ich habe das HP script http://www.elitepvpers.com/forum/metin2-pserver-gui des-strategies/466406-release-metin2-hp-inc-itemsh op.html benutzt aber mein itemshop funzt ned richtig, weil bei name und bei Preis nichts steht nur das bild ist da und der Preis wird nicht abgezogen, aber das item ist dann im IS-Lager. Kann mirr da vielleicht wer helfen?
~ ItemShop problem @ all ~
11/03/2010 - Metin2 Private Server - 3 Replies
Hey ho, Also ich hab das problem auf meinen Server das einige Items nicht ankommen ... Das Script basiert schon lange auf den Item_award .. Es funkt trotzdem nicht ..
[HP] Problem mit dem Itemshop
04/11/2010 - Metin2 Private Server - 8 Replies
Hallo Community! Ich habe mir heute das HP-Script von werdernator heruntergeladen ( http://www.elitepvpers.com/forum/metin2-pserver-gui des-strategies/451847-homepage-release-exklusiv-de sign-ranking-etc-etc.html ) und erfolgreich installiert. Nachdem ich nun also erfolgreich einen neuen Account erstellt haben (ingame unterwegs war) und alles funktioniert hat, wollte ich den Itemshop ausprobieren. Nachdem ich Benutzernamen und Passwort eingegeben habe, kommt folgende Fehlermeldung: ...
ItemShop Problem!!!!
02/25/2010 - S4 League - 17 Replies
Hey, ich hab mir vor kurzem AP gekauft... Ich hab den verschiedene sachen gekauft nur jetz hab ich im Inventar Coupons oder so?? wie setz ich die ein =((



All times are GMT +1. The time now is 01:55.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.