Hey there,
Let me explain my problem. 🙂
This is my "main" function :
//Main function
function show_content($page) {
show_header();
include("content/$page.inc");
show_review();
show_footer();
}
?>
When it calls the file $page.inc..eg when ?page=test, then it will call test.inc for example. Inside the included file ( $page.inc ), it has all my html codes like tables etc. In there, I have:
<?
require("ads/config.inc.php3");
require("ads/view.inc.php3");
require("ads/acl.inc.php3");
?>
<?
view();
?>
It calls the banner and displays it. The problem is, it is not displaying the banner. If I put the above banner calling code in a php file (eg. banner.php) on its own, it will work no problem. I tried declaring $view as a global as well, and that didnt do much. Any ideas why when the code is within a file included in my "main" function doesnt show?
I've also try to include a text file, echo a line, all that works in my file. But not view().
Thanks.