-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.php
More file actions
27 lines (21 loc) · 766 Bytes
/
test2.php
File metadata and controls
27 lines (21 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require_once 'classes/Database.php';
require_once 'classes/Utilities.php';
require_once 'classes/Constants.php';
require_once 'classes/Member.php';
$db = new Database();
new Constants();
$util = new Utilities();
$names = array(
"President","Vice president I","Vice president II","Secretary","Assistant Secretary",
"Financial Secretary","Treasurer","Editor","Public Relations Officer","Social Secretary","Business Manager"
);
foreach($names as $name){
$data = array(
OFFICE_CODE=>$util->getUniqueCode(OFFICES, OFFICE_CODE),
OFFICE_NAME => $name,
DATE_ADDED=>time()
);
$db->insertIntoTable(OFFICES, $data);
}
?>