Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
paranor
Worker
Worker



Joined: Aug 28, 2003
Posts: 227

PostPosted: Wed Dec 03, 2003 10:50 pm Reply with quote

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/strapha/public_html/includes/sql_layer.php on line 286

Line 286 is the "$row = mysql_fetch_row($res);" command below in the case "MySQL'; area.

And I have done anything to the tables. At least on purpose. Wink

Any suggestions on what to check?

Quote:

function sql_fetch_row(&$res, $nr=0)
{
global $dbtype;
switch ($dbtype) {

case "MySQL":
$row = mysql_fetch_row($res);
return $row;
break;;

case "mSQL":
$row = msql_fetch_row($res);
return $row;
break;;

 
View user's profile Send private message
BigDaddyEBK
New Member
New Member



Joined: Nov 21, 2003
Posts: 5
Location: La Mesa, CA(suburb of San Diego)

PostPosted: Thu Dec 04, 2003 12:34 am Reply with quote

I think this link might help you!! [ Only registered users can see links on this board! Get registered or login! ]

_________________
"Unix" for Longevity
"AS/400" for Nostalgia
"Linux" for Productivity
"MAC" for Multimedia
"Windows" for Solitaire Twisted Evil

Hello tech support? I broke the cup-holder on my PC!! 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger ICQ Number
paranor







PostPosted: Thu Dec 04, 2003 8:11 pm Reply with quote

I can never find anything on nukecops. maybe I'm being too complicated on my query.

It does look like 'uid" got in the footer file. How is the big question.

And now I can't remember where I read that I should look in the footer file.

SHEESH!
Smile
 
scottr
PHP-Portal Project



Joined: Jan 21, 2003
Posts: 41
Location: Southern California

PostPosted: Thu Dec 04, 2003 9:05 pm Reply with quote

the search function on nukecops and probably others doesn't work too well.
use google like this:

site:nukecops.com stuff your looking for
or
site:nukecops.com "stuff your looking for"

depending on what you're looking for.

_________________
DECEASED Sad 
View user's profile Send private message Visit poster's website Yahoo Messenger
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Dec 05, 2003 12:20 am Reply with quote

BigDaddyEBK wrote:
I think this link might help you!!
While I appreciate your willingness to help. NC is a great resource, but there are reasons why other help sites exist. Instead of redirecting people, please just post the solution in your own words.


Last edited by Raven on Fri Dec 05, 2003 12:36 am; edited 2 times in total 
View user's profile Send private message
Raven







PostPosted: Fri Dec 05, 2003 12:22 am Reply with quote

paranor wrote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/strapha/public_html/includes/sql_layer.php on line 286

Line 286 is the "$row = mysql_fetch_row($res);" command below in the case "MySQL'; area.

And I have done anything to the tables. At least on purpose. Wink

Any suggestions on what to check?

Quote:

function sql_fetch_row(&$res, $nr=0)
{
global $dbtype;
switch ($dbtype) {

case "MySQL":
$row = mysql_fetch_row($res);
return $row;
break;;

case "mSQL":
$row = msql_fetch_row($res);
return $row;
break;;

Turn sql_debug to ON in sql_layer.php. Then you will find the source sql that is the problem. uid and uname are usually the issues and renaming them to user_id and username will clear up most problems.
 
paranor







PostPosted: Fri Dec 05, 2003 6:48 am Reply with quote

I understood what to do via the nukecops site.

I checked out the footer.php and it looked like it was running a check on if you have private messages or not. My guess it would display it at the bottom of your browser - like your site. I copied back the footer.php I was using and all is well.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©