» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 71
0 members and 71 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Rimonabant - combat obesity and smoking at the same time
Football Betting - best nfl betting promotions at sportsbook.com.
Poker Chips - Clay and composite poker chips for home games.

Register Now! Contact Us

About this Page
This is a discussion on MYSQL phpnuke 6.0 error. within the Purged Topics forums, part of the NM Staff category; I keep getting these errors and i cannot figure out how too fix em, Warning: mysql_num_rows(): supplied argument is not ...



Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-2003, 03:38 PM
Junior Member
 
Join Date: Jun 2003
Posts: 2
MYSQL phpnuke 6.0 error.
I keep getting these errors and i cannot figure out how too fix em,
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ryan/public_html2/php/includes/sql_layer.php on line 253
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ryan/public_html2/php/includes/sql_layer.php on line 301


If you would please help me thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-01-2003, 07:40 PM
Moderator
 
Join Date: Nov 2002
Posts: 737
You might want to change your title so people know you have an sql error, you might get more help that way. Anyway....

Is this a new install, have you just added a new block or module etc? Did you just try to modify some existing code somewhere? Anything like that?

Where does the error show up? Header, footer, all over the page, only in certain pages etc.

Also can you turn debugging on? Change lines 252-255 in sql_layer.php from:
Code:
    case "MySQL": 
        $rows=mysql_num_rows($res); 
        return $rows; 
    break;;
to:
Code:
    case "MySQL": 
        if ($rows=mysql_num_rows($res)) { 
        return $rows; 
        } else { 
        print (mysql_error()); 
        } 
        break;;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-02-2003, 12:46 AM
Junior Member
 
Join Date: Jun 2003
Posts: 2
ok
It's not a new install, or modules or anything like that... i just posted something one day and got all these errors and its in my downloads, main and a few other sections.... heres what i get when i changed them, i had too change line 304 because the other one didnt do anything.

Warning: head(themes//theme.php) [function.head]: failed to create stream: No such file or directory in /home/ryan/public_html2/php/header.php on line 31

Warning: head() [function.head]: Failed opening 'themes//theme.php' for inclusion (include_path='') in /home/ryan/public_html2/php/header.php on line 31

Fatal error: Call to undefined function: themeheader() in /home/ryan/public_html2/php/header.php on line 47
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-02-2003, 04:17 AM
Moderator
 
Join Date: Nov 2002
Posts: 737
What theme are you using? I doubt that it is a theme issue but it might be. You also might want to download a copy of your html file where you get the error, and check to see if there are any more errors that have been inserted in the html coding, sometimes that happens instead of the error being displayed.

Turning debugging on for the other lines didn't do anything? Hmmm... that is where it should be turned on for sql layers.

You are using 6.0 right? None of your blocks or anything else is for 6.5 or higher?

When you say that you posted something, you posted it where exactly?

Any chance you can either post a link or send it to me in PM so I can see the error and where it is displayed on the page please.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
phpnuke SQL Error : 1064 Sparax Nuke 7.x - General 4 12-28-2006 03:07 PM
MySql Nuke Platnum Error 90thSFG Nuke 7.x - General 1 06-12-2005 04:32 PM
MYSQL Error From admin panel tones Nuke 7.x - General 1 11-22-2004 02:40 PM
PHPnuke Syntax Error Elite-Fusion Site design 0 06-04-2003 04:58 PM
mySQL guestbook module error Suezy Open topics 9 04-19-2003 12:25 PM


All times are GMT -5. The time now is 06:08 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31