PHP User Survey Part V: Administration Layer

n the last piece on our PHP online user poll, we look at the administrative service and how the site supervisor enters, deletes and manages the poll data.The first poll administrative page checks if the administrator is logged in. You can choose from Session variables or Cookies to check the site administrator login status.Once the application has confirmed the identity of the site administrator, the page lists the available polls.

PHP User Survey Part IV: Presentation Layer

So far in this series, we have developed the data layer (database tables) and the business layer (PHP methods) for manipulating the data.In this piece, we will look at the presentation layer that is used to display the poll question and poll results.The HTML header will check for the presence of a cookie (in case the user has voted previously) and refresh the page if it has timed out.

PHP User Survey: Setting Variable Values and Reading from Tables

In Part I of this series, we started the process of creating user polls for a business web site. Part I gave the layout of the data layer and began the construction of the class file. In this part we will continue with adding methods to the class file that will enable the administrator to set the variable values and read from the database tables.