I cannot for the life of me figure out why this doesn’t work and I’m sure it is so simple.
[php]
<? include 'mysqlconnect.php'; include 'header.php'; $Employee_Array=array(); function buildEmpArray($NumOfEmps) { for ($i=0; $i<$NumOfEmps; $i++) { $Employee_Array[$i] = "Employee"; } } function echoArray() { $EmpCount=count($Employee_Array); echo "";
for ($i=0; $i<$EmpCount; $i++)
{
echo $Employee_Array[$i], "
";
}
echo "
[/php]
No matter what value is passed with $NumOfEmps it never adds any values to the $Employee_Array