i have this code
<?php
ob_start();
class build{
private $title;
private $keywords;
public function display(){
print("<html>\n");
print("<head>\n");
print("<title>$this->title \n");
print(" $this->keywords</title>\n");
print cssdisplay();
print("<head>\n");
print("<body>\n");
print maincontent();
print("</body>\n");
print("</html>");
}
public function cssdisplay($margin,$back,$font,$linkcolor,$none){
print("<style type=text/css>\n");
print("body{\n");
print("margin-top: $margin;\n");
print("background: url('$back');\n");
print("font: $font;\n");
print("}\n");
print("a:link{color: $linkcolor;}\n");
print("a:active{color: $linkcolor;}\n");
print("a:visited{color: $linkcolor;}\n");
print("a:hover{color: $linkcolor; text-decoration: $none;}\n");
print("</style>");
}
}
ob_end_flush();
?>
and recieve this error when called to the index
Fatal error: Call to undefined function cssdisplay() in C:\serverbin\apache\htdocs\under\bridge.class on line 16
little help?
i have read a lot but still i need some practice!
thanks by the way!