FG-alex
12-03-2007, 08:30 PM
Hello, I have a template for pages but use a separate page for the 'content'. At the moment I have:
<?php echo $row_page['pagetitle']; ?>
<?php include('inc/header.php'); ?>
<?php include(''page-.php"); ?>
<?php include('inc/footer.php'); ?>
What I need to have is:
<?php include('page-''echo $row_page['pageid']''.php' ?>
But no matter what I do I cannot get this code to work, it will only accept 'page-1.php' but not a dynamic value.
Is there a way to get around this?
Thanks.
<?php echo $row_page['pagetitle']; ?>
<?php include('inc/header.php'); ?>
<?php include(''page-.php"); ?>
<?php include('inc/footer.php'); ?>
What I need to have is:
<?php include('page-''echo $row_page['pageid']''.php' ?>
But no matter what I do I cannot get this code to work, it will only accept 'page-1.php' but not a dynamic value.
Is there a way to get around this?
Thanks.
