You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 54 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - mysql_fetch_row() error [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Sun May 11, 2003 11:38 pm Reply with quoteBack to top

I have downloaded a module called clanbase and installed it on my phpnuke 6.5 RC3.02 site. http://www1.enemyoffline.com/modules.php?name=Clanbase

The module seems to work, however I think its created for phpnuke 6.0 and therefore I need some help here to reconfigure something.
I do get an error message.

Error message:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/www.enemyoffline.com/html/includes/sql_layer.php on line 286

This is line 286:
Code:
$row = mysql_fetch_row($res);


Is it possible to alter the module so that it works with 6.5 Question

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon May 12, 2003 1:26 am Reply with quoteBack to top

yes, and if you read around the forums, you'll find out how.

AI
Find all posts by ArtificialIntelView user's profileSend private message
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Mon May 12, 2003 3:36 am Reply with quoteBack to top

believe me, I've tried...

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Mon May 12, 2003 4:11 am Reply with quoteBack to top

I only find the:

$row = mysql_fetch_row($res) and change it into
$row = mysql_fetchrow($res);

And if I do that my login block gets this error:

Code:
Fatal error: Call to undefined function: mysql_fetchrow() in /home/www/www.enemyoffline.com/html/includes/sql_layer.php on line 286

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Mon May 12, 2003 4:22 am Reply with quoteBack to top

Now I tried the Debug=1 thing mentioned in announcement:
One more line where added in my error message:

and the

Code:
 case "MySQL":
if ($row = mysql_fetch_row($res)) {
return $row;
} else {
print (mysql_error());
}
break;;


was also entered into line 300


Code:
SQL query: select uid from nuke_users where uname='JallaBalla[EO]'

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/www.enemyoffline.com/html/includes/sql_layer.php on line 286
Unknown column 'uid' in 'field list'


Does this you something more, AI? Embarassed (sry.... Embarassed )

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon May 12, 2003 4:43 am Reply with quoteBack to top

the line in sql_layer.php should say mysql_fetch_row($res);

the line you need to change is in whatever file that's causing the error in sql_layer.php. Find the module / block that's causing the error, and change all references of uid to user_id for a start, and uname to username for seconds.

AI
Find all posts by ArtificialIntelView user's profileSend private message
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Mon May 12, 2003 4:52 am Reply with quoteBack to top

I changed the 'uname' and 'uid' in the index.php of the module and it worked.... Thanx A LOT, AI! Very Happy

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.178 Seconds - 275 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::