According to the first part of our project, we will now create the status stream display list. In order to do this, we need a PHP class and a MySQL database, filled with some dummy data representing status posts. The PHP class,
StatusPoster.php, will contain the MySQL database connection using the PDO inside its constructor, and a method to fetch the rows of status entries from the database.
To store and retrieve the status posts from the database, we connect with the MySQL database server, create the database and table to insert status entries, and fetch those entries to display within a status stream.