|
MemberShip Database port to PHP4
|
/ -> list_committees.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: LIST COMMITTEES ");
12
13 bodyTag();
14
15 // Define $conn 16 $conn = connect();
17
18
19 // if this is a submit process 20 $select_qry = "SELECT * from Committees";
21
22 $result = query($select_qry);
23 if(!$result) {
24 print error();
25 } else {
26 print "<TABLE>";
27 while($row=fetch_array($result)) {
28 extract($row);
29 print "<tr><td>". $CommitteeID . "</td><td>" . $CommitteeName . "</td><td>" . $CommitteeDescription
30 . "</td></tr>";
31 }
32 print "</TABLE>";
33 }
34
35
36 // print "Committees Script"; 37
38
39
40
41 pageBottom();
42 siteFooter();
43
44 ?>
|