|
MemberShip Database port to PHP4
|
/ -> membertypes.php
1 <?php
2 // get application functions 3 require('include/app_functions.php');
4
5 // Define $conn 6 $conn = connect();
7
8 // if this is a submit process 9 if($submit) {
10 $insert_qry = "INSERT INTO CommitteeMembers";
11 $insert_qry .= " VALUES ('', '$CommitteeID','$MemberID',
12 '$CommitteePosition')";
13
14 $result = query($insert_qry);
15 if(!$result) {
16 print error();
17 } else {
18 print "Data was entered";
19 }
20
21 } else {
22
23 print "Members Script";
24
25 }
26
27
28
29
30 ?>
31
| |