Listing Articles for a PEAR Content Management System
(Page 1 of 4 )
In this tenth part of a twelve-part series on building a content management system with PEAR, we'll be covering the page that deals with listing articles that were written by a specific author. It is activated when a user selects an author from the list of authors on the author’s page. The idea is that you will then get a list of articles that were written by the author that you selected, and then you can read the articles. This page will only display the titles for each article.
The authart.php script
The script has the following code:
<?php
session_start();
if(!isset($_SESSION['author_name'])){
//redirect to login page
header("location:login.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">