-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
52 lines (43 loc) · 1.3 KB
/
test.php
File metadata and controls
52 lines (43 loc) · 1.3 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
require_once 'classes/Database.php';
require_once 'classes/Utilities.php';
require_once 'classes/Constants.php';
require_once 'classes/Member.php';
$db = new Database();
$cons = new Constants();
$member = new Member();
$util = new Utilities();
$data = array(
AFFILIATION_CODE=>$util->getUniqueCode(AFFILIATIONS, AFFILIATION_CODE),
AFFILIATION_NAME => 'University of Benin'
);
$condition = array(
MEMBER_ID => '1',
MEMBER_STATUS => '1'
);
$db->insertIntoTable(AFFILIATIONS, $data);
//$order_by = array(MEMBER_CODE,USERNAME);
//var_dump($data);
//$sals = $db->getWhere(SALUTATIONS,null,$order_by);
var_dump($sals);
?>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="1">
<tr>
<td>Username</td>
<td><input type="text" name="<?php echo USERNAME; ?>" id="<?php echo USERNAME; ?>" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="<?php echo PASSWORD; ?>" id="<?php echo PASSWORD; ?>" /></td>
</tr>
<tr>
<td>Contact Address</td>
<td><textarea name="<?php echo CONTACT_ADDRESS; ?>" id="<?php echo CONTACT_ADDRESS; ?>" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="button" id="button" value="Submit" /></td>
</tr>
</table>
</form>