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, 126 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How to make global variables? [ ]
 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
skrote
Nuke Cadet
Nuke Cadet


Joined: Jun 17, 2003
Posts: 3


PostPosted: Mon Jun 23, 2003 7:51 am Reply with quoteBack to top

I was having the same problem as pointed out in this thread http://nukecops.com/postlite885-mysqlnumrows.html I did what AI said except the part where he says "in the global lines, make sure $db and $prefix are both called.", sadly I don't know how to do this. If you can tell me where I put those two variables it would be great.
Find all posts by skroteView user's profileSend private messageVisit poster's website
TrevorS
Corporal
Corporal


Joined: Jun 02, 2003
Posts: 68

Location: Denver, Colorado

PostPosted: Wed Jul 16, 2003 2:32 pm Reply with quoteBack to top

If I remember right, PHP now installs with globals turned off by default. But... as far as I know, PHPNuke still uses globals. Of course I may be wrong.

Anywho, look for the global string below a function construct.

Example :
Code:

function mod_activate($mod_id)
{
   global $db,$prefix,$othervar1,$othervar2;
   // Internal function opperations
}


This may, or may not, help.
Find all posts by TrevorSView 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
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.163 Seconds - 240 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::