1 pjaol 1.1 <?php
2 include("lib/loader.inc");
3 include("lib/db/dbiw.inc");
4 include("lib/conf/conf.inc");
5
6 class users {
7
8 private $conf;
9 private $dbiw;
10
11 function __construct () {
12 $conf = Conf::instance();
13 $dbiw = new db_handle();
14 }
15
16 function getAllGroups () {
17 $sql = "select idGroups,groupName from Groups";
18 return $dbiw->dbSel($sql);
19 }
20
21 function insGroup ($group) {
22 pjaol 1.1 $sql = "insert into Groups('groupName')
23 values '$group'";
24 $dbiw->dbIns($sql);
25 }
26
27
28 }
29
30 ?>
|