Mmm, no, not exactly what I've tried to do.
I've got head() set up like so in display.php:
function head($szTitle='',$category='0',$scategory='0') {
...with nothing set global at the moment (changed it back to default).
Then, in the page I'm displaying, I call something like:
include('display.php');
head('ERP Services','1','0');
However, I have my menu, breakout tables, and whatever else I want to display in left_column_content.php, which is actually included from inside display.php. Menu.php included in head(), while left_column_content.php is being included in foot().
Menu.php finds what arguments from head like so:
$category = func_get_arg(1);
$scategory = func_get_arg(2);
Now, before I even include left_column_content.php, I'd like to determine if $category is 0 and $scategory is 0 as well. I've tried to do this from just before my include of left_column_content.php in foot(); also tried from within menu.php.
Here's what it looks like:
http://www.wow-erp.com/index1.php
Basically, index1.php has no category and no subcategory, being the main page. IE:
include('display.php');
head('','0','0');
From within foot() just before my include of left_column_content.php, I currently have this:
echo $category;
if($category == '0' && $scategory == '0'){
?>
<div align="center"><a href="certified.php"><img src="images/wbe_logo_metal.jpg" alt="See Our Certifications" border="0"></a>
<?php
}
include "left_column_content.php";
But $category of course never echoes out.