<html>
  <head><title>Polls and Trivia Questions</title></head>


          <?php


    # this script will place a header at the top of the page
          include "includes/header.php";


    #query for all polls
          $all_polls_query="SELECT * FROM pollquestion";


          include "includes/db_connect.php";

    #send poll question query to database, load result into "question_result"
          $all_polls_result=mysql_query($all_polls_query,$db);


    #loop through answer result set and display
          echo "$font2 <br>";

          while ($myrow = mysql_fetch_row($all_polls_result)) {
            echo "<b>$myrow[3]: <a href=\"pollform.php?clicked_pollquestionintid=
            $myrow[0]&clicked_pollquestiontype=$myrow[3]\">$myrow[1]</a></b><br> $myrow[2]<br><br>";


                }

          echo "<font>";

          ?>


    <br>
    <table width="300">
      <tr>
        <td width="300" align="left">
          View <a href="txt_docs/index.php">Source Code</a></td></tr></table>



          <?php

    # this script will place a footer at the bottom of the page
          include "includes/footer.html";



          ?>


  </body>
</html>