Hi all,
I have a 2 dimentional array. What im trying to do is pull out the relevant bits and slot them under their correct segment, which works for tier one. If totally forgotten how to loop through the 2nd tier of the array. i know it needs to go in the else, but my brain is fried
my code so far is as follows
echo "<table border=\"1\">";
echo "<tr>";
foreach ($headers as $header){
echo "<td>" . $header . "</td>";
}
echo "</tr>";
$SQL = "SELECT converted_text FROM forms_subscribed";
$results = tep_db_query($SQL);
while ($row = tep_db_fetch_array($results)){
$entry = unserialize($row['converted_text']);
foreach ($headers as $key=> $header){
if ((array_key_exists($header, $entry)) && ($entry[$header] != 'Array')){
echo "<td>" . $entry[$header] . "</td>";
} else {
echo "<td>-</td>";
}
}
echo "</tr>";
}
echo "</table>";