new to this and me and classes have never mixed well, im getting no errors
but the only thing displaying is the copyright at the bottom of the page
Anyone tell me whats wrong?
Home.php_____________________
<?php
require('includes/page.inc');
$homepage = new page();
$homepage ->SetContent('<table width="95%" height="239" border="0"
align="center" cellpadding="0" cellspacing="0" >\n
<tr>\n<td width="120" height="69" bgcolor="#99CC00"
align="center">jhg </td>\n <td>this was inherited</td>\n</tr>
</table>'
);
$homepage->Display();
?>
Page.inc_______________________
<?php
//page class
class page
{
var $content;
var $title ='childhood memories';
var $keywords='childhood memories, peoples childhood of days gone by';
// class functions
function SetContent($newcontent)
{
$this->content = $newcontent;
}
function SetTitle($newtitle)
{
$this->title = $newtitle;
}
function SetKeywords($newkeywords)
{
$this->keywords = $newkeywords;
}
function DisplayHeader()
{
?>
<table width="95%" height="87" border="0" align="center" cellpadding="0"
cellspacing="0" >
<tr bgcolor="#99CC00">
<td height="87"> </td>
<td width="745" height="87" bgcolor="#99CC00"> </td>
</tr>
</table>
<?php
}
function display()
{
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\">\n<html>\n<head>";
$this->DisplayTitle();
$this->DisplayKeywords();
$this->DisplayStyles();
echo "</head>\n<body\n";
$this->DisplayHeader();
$this->content;
echo "<center>©2004 Jarrowonline</center>";
echo "</body>\n</html>";
}
function DisplayTitle()
{
echo'<title> $this->$title</title>';
}
function DisplayKeywords()
{
echo "<META name=\"keywords\" content=\"$this->keywords\">";
}
function DisplayStyles()
{
echo '<link href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\">';
}
function IsURLCurrentpage()
{
if(strpos($GLOBALS['SCRIPT_NAME'],$url)==false)
{
return false;
}
else
{
return true;
}
}
}
?>
____________________________________
TIA