in vshare2.6, we used to do somethin glike this and it would work, but doesn't with 2.7---the information from the database is not displayed in 2.7 and I'm using the same database script as I did with 2.6, other than changing the name of the database tables for 2.7 and using the new "include" codes posted earlier.

Code:
<?php
session_start();
require("include/config.php");
require("include/function.php");
    
	if (!isset($_SESSION['USERNAME'])) {
       Header("Location: {$config['baseurl']}/login.php");
            exit(0);
    }
STemplate::assign('err',$err);
STemplate::assign('msg',$msg);
STemplate::display('../templates/header.tpl');
STemplate::display('../templates/error.tpl');

==MY WHOLE BUNCH OF PHP CODE INCLUDING DATABASE QUERIES BLAH BLAH BLAH===

STemplate::display('../templates/footer.tpl');

db_close(); ?>