O'Reilly logo

PHP Application Development with NetBeans Beginner's Guide by M A Hossain Tonu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the status stream display list

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.

Setting up the database server

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required