Lines 89 through 104 Function: <code>AddGroup($groupname, $type)</code> Error: The field `groupstype` does not exist in the table `TABLE-PREFIX_groups` <pre> public static function AddGroup($groupname, $type) { $groupname = DB::escape($groupname); if($type != 'a' || $type != 'd') $type = 'd'; $query = "INSERT INTO " . TABLE_PREFIX . "groups (name, groupstype) VALUES ('$groupname', '$type')"; $res = DB::query($sql); if(DB::errno() != 0) return false; return true; } </pre> Suggested resolution: Remove function Alternate solution: Remove class
Lines 89 through 104
Function:
AddGroup($groupname, $type)Error: The field
groupstypedoes not exist in the tableTABLE-PREFIX_groupspublic static function AddGroup($groupname, $type) { $groupname = DB::escape($groupname); if($type != 'a' || $type != 'd') $type = 'd'; $query = "INSERT INTO " . TABLE_PREFIX . "groups (name, groupstype) VALUES ('$groupname', '$type')"; $res = DB::query($sql); if(DB::errno() != 0) return false; return true; }Suggested resolution: Remove function
Alternate solution: Remove class