Hello,
everything is ok except
function __construct($title,$content) {
$this->title = $title;
$this->content = $content; }
Hope this will help you, whenever you find error, just go back from the print statement to the top of the code. You will find the error.
emarshah
Junior Poster in Training
61 posts since Jan 2008
Reputation Points: 10
Solved Threads: 6