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.

61 lines
2.3 KiB

  1. <html>
  2. <head>
  3. <title>Olive Branch, MS</title>
  4. <base target="section_body">
  5. <link rel=stylesheet href=/styles/basic.css type=text/css>
  6. </head>
  7. <body>
  8. <form method="post" action="bsearchbody.php3">
  9. <?
  10. // connect to the database
  11. $connection = pg_connect("localhost", "5432", "olivebranch");
  12. if($connection)
  13. {
  14. $query = "SELECT distinct category FROM member";
  15. $result = pg_exec($connection, $query);
  16. if($result)
  17. {
  18. print("Category:<br><select name=\"category\">\n");
  19. print("<option value=\"\">--- All Categories ---\n");
  20. for($row = 0; $row < pg_NumRows($result); $row++)
  21. {
  22. print("<option value=\"" . pg_result($result, $row, 0) . "\">");
  23. print(pg_result($result, $row, 0));
  24. print("\n");
  25. }
  26. pg_freeresult($result);
  27. }
  28. print("</select><br>\n");
  29. pg_close($connection);
  30. }
  31. print("<table border=0 cellpadding=0 cellspacing=0>");
  32. print("<tr><td colspan=2 align=left>Company Name:</td></tr>");
  33. print("<tr><td colspan=2><input type=\"text\" name=\"wordsearch\" maxlength=32 size=17><br>\n</td></tr>");
  34. print("<tr><td align=left><input type=\"radio\" name=\"wordoption\" value=\"start\">Starts with</td>");
  35. print("<td align=right><input type=\"radio\" name=\"wordoption\" value=\"end\">Ends with</td></tr>");
  36. print("<tr><td colspan=2 align=center><input type=\"radio\" checked name=\"wordoption\" value=\"contain\">Contains<br></td></tr>");
  37. print("</table>");
  38. print("<table border=0>");
  39. print("<tr><td colspan=2 align=left>Contact Name:</td></tr>");
  40. print("<tr><td colspan=2><input type=\"text\" name=\"contactsearch\" maxlength=32 size=17><br>\n</td></tr>");
  41. print("<tr><td align=left><input type=\"radio\" name=\"contactoption\" value=\"start\">Starts with</td>");
  42. print("<td align=right><input type=\"radio\" name=\"contactoption\" value=\"end\">Ends with</td></tr>");
  43. print("<tr><td colspan=2 align=center><input type=\"radio\" checked name=\"contactoption\" value=\"contain\">Contains<br></td></tr>");
  44. print("</table>");
  45. print("<table border=0>");
  46. print("<tr><td colspan=2 align=left>Results per Page:</td></tr>");
  47. print("<tr><td colspan=2><input type=\"text\" value = \"5\"name=\"linesperpage\" maxlength=32 size=17><br>\n</td></tr>");
  48. print("</table>");
  49. ?>
  50. <input type="submit">
  51. </p>
  52. </form>
  53. </body>
  54. </html>