$countErrors++; $dispError .= " <b>·</b> You selected an invalid category order.<br>"; } if ($countErrors == 0) { $arrUpdateColumn = array("name"); $arrUpdateValues = array($_POST['catname']); $resortOrder = false; if ($intNewOrderSpot != $profileCatInfo['ordernum']) { $arrUpdateColumn[] = "ordernum"; $arrUpdateValues[] = $intNewOrderSpot; $resortOrder = true; } $profileCatObj->select($profileCatInfo['profilecategory_id']); if ($profileCatObj->update($arrUpdateColumn, $arrUpdateValues)) { echo "\n\t\t\t<div style='display: none' id='successBox'>\n\t\t\t\t<p align='center'>\n\t\t\t\t\tSuccessfully Edited Profile Category!\n\t\t\t\t</p>\n\t\t\t</div>\n\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\tpopupDialog('Edit Profile Category', '" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "', 'successBox');\n\t\t\t</script>\n\t\t\t\n\t\t\t"; $profileCatObj->resortOrder(); } else { $countErrors++; $dispError .= " <b>·</b> Unable to save information to the database! Please contact the website administrator.<br>"; } } if ($countErrors == 1) { $_POST = filterArray($_POST); $_POST['submit'] = false; } } if (!$_POST['submit']) { $countCategories = 0; $afterSelected = ""; if ($profileCatInfo['ordernum'] == 1) { $selectCat = $profileCatInfo['ordernum'] + 1;