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.
TrevorS Corporal
Joined: Jun 02, 2003
Posts: 68
Location: Denver, Colorado
Posted:
Wed Jul 16, 2003 2:32 pm
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
}
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