ok so i got the code to update forum info.
whats the best way to use this...
i'm trying to just copy the code that does it and put it in my script... i get a few errors i'm not sure how to fix.
first-do I have to
require_once('../../admincp/global.php');
require_once('../../includes/functions_databuild.php');?????????????
because i get an error in global.php
Fatal error: Failed opening required './includes/init.php' (include_path='.:/usr/local/lib/php') in /www/forum/htdocs/admincp/global.php on line 32
if i comment global.php out i get an errore when i try to do a query such as:
$forums = $DB_site->query("...");
Fatal error: Call to a member function on a non-object in /www/forum/htdocs/import/forums/showForums.php on line 26
what file do i need to include to make this query work?
|