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, 139 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 - existing site broken with sql_lay.php errors help [ ]
 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
countryboy
Nuke Cadet
Nuke Cadet


Joined: Feb 09, 2003
Posts: 1

Location: USA

PostPosted: Sun Feb 09, 2003 7:41 pm Reply with quoteBack to top

I have not changed anything in my site and started getting the sql-layer.php error below. Can someone help me understand how to fix it. I have tried the posts here and they do not work or even the line number match up. The error codes are in the top middle column.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /export/home5/oregonsldc/public_html/oregonffa/public_html/phpnuke55/html/includes/sql_layer.php on line 235

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /export/home5/oregonsldc/public_html/oregonffa/public_html/phpnuke55/html/includes/sql_layer.php on line 494

I have deactivated modules and blocks and still no fix.

To see please go to http://www.oregonffa.com

thanks
Find all posts by countryboyView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sun Feb 09, 2003 7:56 pm Reply with quoteBack to top

Open sql_layer.php and change lines 234-237 to:
Code:

    case "MySQL":
        if ($rows = mysql_num_rows($res)) {
            return $rows;
        } else {
            print (mysql_error());
        }
    break;;

Upload the modified sql_layer.php file and you should know get a more datailed error. Also grab Analyzer from our downloads section.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.719 Seconds - 83 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::