Olive Branch MS Chamber of Commerce (circa Oct 1999)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

27 lines
794 B

  1. <?php // Sponsor Page
  2. header("Content-type: text/html");
  3. //
  4. // import database configuration and functions
  5. require("config/db.config");
  6. require("config/db.functions." . $dbserver);
  7. //
  8. // connect to the database
  9. $connection = connect($host, $dbname);
  10. if($connection) {
  11. // import minipage functions
  12. require("config/mini.functions");
  13. // setup query value
  14. $query = "select * from minisite where content = "sponsors" order by ord";
  15. $result = query($connection, $query);
  16. $count = numrows($result);
  17. if($count) {
  18. // dynamically call a function for each record
  19. // based on the contents of its "type" field
  20. for($row=0; $row < $count; $row++) {
  21. $data = fetch_object($result, $row);
  22. $function = $data->type;
  23. $function($data);
  24. }
  25. include("html/tail.std");
  26. ?>