I am trying to import some code into my webpage so that the photo album goes with my website look but I am having problems when I copy and paste the php code in and I think its because the code creates the page with the html, head, body sections.
How can I get around this so that I can just import the actual php code in to my webpage to just show the pictures?
Thanks Dicko
The partial php code below I think creates the html page am I right as I dont want the script to do this ?
function sfpg_css_link()
{
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . sfpg_url("", "", "", "css") . "\">";
}
function sfpg_html_start($head="", $body="")
{
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"><html><head>";
sfpg_css_link();
echo "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=" . CHARSET . "\"><title>" . htmlspecialchars(TEXT_GALLERY_NAME) . "</title>" . $head . "</head><body" . $body . " class=\"sfpg\"><div align=\"center\">";
}
function sfpg_html_end()
{
echo "</div></body></html>";
}