start.php -- the home page for the application
 Lists the articles stored in the database and provides
 links for creating a new article, editing existing articles
 and deleting existing articles
 Copyright (c) 2005 Ephox Corporation. All rights reserved.
 See license.txt for license agreement
// include the database wrapper functions
<TITLE>Sample Database Application for PHP</TITLE>
<LINK rel="stylesheet" href="sample.css">
<H1>Sample Database Application for PHP</H1>
<P><A href="add.php">Create a new article</A></P>
//Attempt to establish a connection with the database
if (!DBConnect()) {
       print DBError();
} else {
   DBQuery("select * from articles");
   if (DBFetchRow()) {
<TABLE cellpadding=3 cellspacing=0 border=0>
      <TH width="250">Title</TH>
      <TH>Available Actions</TH>
           // There are records. Loop through all the records in the
           // recordset and write out a table row for each record
           do {
      <TD><A href="view.php?article_id=<?=DBResult("article_id")?>">View</A> |
         <A href="edit.php?article_id=<?=DBResult("article_id")?>">Edit</A> |
         <A href="delete.php?article_id=<?=DBResult("article_id")?>">Delete</A>
           } while(DBFetchRow())
   } else {
?><P>There are no records in the database. Click <STRONG>Create a new article</STRONG>
to add a record to the database.</P>