Code: Select all
foreach ($site_array as $site_key => $site_val)
{
$row_color = ($row_count % 2) ? $color1 : $color2; // row alternating color stuff
echo "<tr bgcolor=$row_color><td><a href=test2.php?scode=$site_key>$site_key</a></td>";
foreach ($current_patchs as $key => $patch_val) // this one puts the items in correct just not the right value printed.
//foreach ($site_val as $site_name => $site_data) // normal output loop for value
{
echo"<td>$site_val[$patch_val]</td>"; // This line just prints the "Array" item in the correct colmn! Right here is where I need the next zero element.
// foreach ($site_data as $key => $value) // normal output loop for value
// {
// echo "<td>$value</td> ";
//} // 3rd dimension
} // 2nd dimension
echo" </tr>";
$row_count++; //
} // 1st dimensionThis produces this output:
The output is in the correct columns, I just need to print the final array element there? Which in the normal output is the last loop.
I am getting an invalid index error, LOL thats is because that index doesn't exist. LOL
