...

View Full Version : Simple Include() Problem... Variable In The Include Path



SmArTaSs
12-13-2003, 07:19 PM
Hey! I need some more help ...

I just wrote this litte script, a navigation system.

The problem is, I can't get the include(); to work right.

I made the script so that all I have to do is place this on the navigation. In the parhenteses (sp? haha) would be the title of the block/nav section.

<?php
formatnav(Navigation);
?>

Here's the script:


<?php

function formatnav($title) {

echo "<TABLE style=\"HEIGHT: 14px\" cellSpacing=0 cellPadding=0 width=155 border=0><TBODY><TR>
<TD class=nav vAlign=top align=center height=14><span class=\"gensmall\">$title</span></TD>
</TR></TBODY></TABLE><br>";

include('layout/blocks/$title.php');

echo "<br><br>";

}
?>

What's wrong?

SmArTaSs
12-13-2003, 08:12 PM
n/m ... i got it figured out



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum