hey thanks for the quick suggestion, I tried and it didnt seem to work..., here is the main file I have, the 'config.php' file is where the array $AppTables is setup and I have tested that that is ok using the code below before I converted it into a function... I am sorry if this file is to big to post here..
<?php
$ConfigFile = "config.php";
function config_summary($ArrayName)
{//FUNCTION START
global $ConfigFile;
global $errorMsg;
echo '$ArrayName= ' . $ArrayName;
if(include($ConfigFile))
{//LOOP 1
if(is_array($ArrayName))
{//LOOP 2
$result = TRUE;
echo '<CENTER><TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH=600 BGCOLOR="#000000" ALIGN="CENTER">';
echo '<TR BGCOLOR="#9999CC">';
echo "\n<TD><h1><u><b>Array: " . $ArrayName . "</b></u></h1><br><br></TD>\n";
echo '</TR>';
echo '</TABLE></CENTER>';
echo '<CENTER><TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH=600 BGCOLOR="#000000" ALIGN="CENTER">';
for($n = 0; $n < count($ArrayName); $n++)
{
$line = each($ArrayName);
echo('<TR><TD BGCOLOR="#CCCCFF">' . $line[key] . ' = ' . '</TD><TD BGCOLOR="#CCCCCC">' . $line[value]) . "</TD>\n";
}
echo '</TABLE></CENTER><BR>';
}//END LOOP 2
else
{$result = FALSE; $errorMsg[]="Argument $ArrayName is not an array";}
}//END LOOP 1
else
{$result = FALSE; $errorMsg[]="Error including config file";}
return $result;
}//FUNCTION END
config_summary($AppTables);
?>