|
MemberShip Database port to PHP4
|
/ -> list_committeemembers.php
1 <?php
2
3 // get application functions 4 require('include/variables.php');
5 require('include/app_functions.php');
6
7 include('include/win95.scheme.php');
8
9 siteHeader("Committees Script");
10
11 pageTop("Membership Database Application");
12
13 bodyTag();
14
15 // Define $conn 16 $conn = connect();
17
18
19 // if this is a submit process 20 $select_qry = "SELECT * from CommitteeMembers";
21
22 $result = query($select_qry);
23 if(!$result) {
24 print error();
25 } else {
26 print "Data returned!!!";
27 print "<TABLE>";
28 while($row=fetch_array($result)) {
29 extract($row);
30 print "<tr><td>". $CommitteeID . "</td><td>" . $MemberID . "</td><td>" . $CommitteePosition . "</td></tr>";
31 }
32 print "</TABLE>";
33 }
34
35
36 // print "Committees Script"; 37
38
39
40
41 pageBottom();
42 siteFooter();
43
44 ?>
|