PHP: Hot Pages: SQLite

  1. A Poll
  2. PHP: Hot Pages
  3. More Information

Storing form results in a flat file is easy, but it doesn’t let you manipulate the results easily. If you want to look at your data later you almost always want to store the data in a SQL database. SQL allows you to run queries on your data to see only parts of the data: only the votes from today, or only the votes from one IP address.

For purposes of this tutorial, I’m going to use SQLite, because it is available by default in PHP.

  1. A Poll
  2. PHP: Hot Pages
  3. More Information