class form_groups_add_user { public $id; public $database; public $db_name; public $group_table; public function __construct($context) { $this->id = $context['id']; $this->database = $context['database']; $this->db_name = $context['db_name']; $this->group_table = $context['group_table']; $this->group_table_add = $this->group_table."_add"; } public function form() { $id = $this->id; $database = $this->database; $db_name = $this->db_name; $group_table = $this->group_table; $group_table_add = $this->group_table_add; $groups_arr = array(); $get_current_groups = " SELECT group_add_id FROM $db_name$group_table_add WHERE group_id = '$id'"; $query = $database->getAll($get_current_groups); foreach($query AS $results_groups) $groups_arr[] = $results_groups['group_add_id']; ?>
User Types: | |