Pagina 1 din 1

itemshop MOD - Nu merge un script

Scris: 05-Iun-2011, 09:27:14
de Sergiu23
Eroare :
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/metin2/public_html/shop/scripts/itemshop/face/category.php on line 23

Script :

Cod: Selectaţi tot

    <div id="archive">
<?php
	if($_SESSION['id'] == "") {
		echo "Du musst eingeloggt sein!"; }
		else {
		
		$coins = $_SESSION['coins'];
		
	$db	= "account";
	mysql_connect($dbhost, $dbuser, $dbpw) OR
	die("ERROR: Connection failed. ".mysql_error());		
	mysql_select_db($db) OR
	die("ERROR: DB allready open. ".mysql_error());
		echo "
		<div class=\"entry\">
	<a class=\"archive_title\" href=\"index.php?page=shopindex\">
		<img src=\"../../images/icons/home.png\" border=\"0\" width=\"20\" height=\"20\"><b>Index</b>
	</a></div>
";
	$section = "SELECT * from itemshopkat";
		$query = mysql_query($section);
      $i = 0 ;
				while($row = mysql_fetch_object($query)) {
		  
		echo "
		
			<div class=\"entry\">
	<a class=\"archive_title\" href=\"index.php?page=itemshop&category=$row->id\">
		<img src=\"../../images/icons/$row->icon\" border=\"0\" width=\"20\" height=\"20\"><b>$row->name</b>
	</a>
</div>";

 $i++;
}
}
?>
</div>
Linia 23 reprezinta codul :
while($row = mysql_fetch_object($query)) {

chiar nu imi dau seama ce am putut gresi...daca ma puteti ajuta v-as fi foarte recunoscator :(

Re: itemshop MOD - Nu merge un script

Scris: 05-Iun-2011, 13:52:01
de bogdan
Subiect mutat.

De ce nu dai toate detaliile? viewtopic.php?f=14&t=15139&p=109011#p109011

Probabil ai vrut sa instalezi un MOD - itemshop / shop / store MOD. Asa este? De unde l-ai luat?

Re: itemshop MOD - Nu merge un script

Scris: 05-Iun-2011, 18:14:12
de Sergiu23
am rezolvat problema
greseala mea era ca nu aveam in DB creat tabelul itemshopkat
dar oricum mulumesc
Bafta, O zi buna in continuare!