Well your script is missing some code and doesn't know what to update since you are not defining what to update, another words if you add an id field as I stated in my other post, this line:
PHP Code:
$excludedforums=$DB->query_first("SELECT excludedforums FROM topx_admin");
should be changed to this:
PHP Code:
$excludedforums = $DB->query_first("SELECT excludedforums FROM topx_admin WHERE id = $id");
Then you should globalize id after this:
PHP Code:
if ($_GET['act'] == "update")
{
and while your at it change the above:
PHP Code:
if ($_GET['act'] == "update")
{
to this:
PHP Code:
if ($_REQUEST['do'] == "update")
{
and when you link it with a url set it like this:
Code:
topxadmin.php?do=update&id=$id
also get rid of this:
$DB=$DB_site;
and just use $DB_site
hmmm...I keep finding more...
take this:
PHP Code:
print_cp_header("Top X Control Panel");
and move it to where $DB=$DB_site; was