Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($tabledata as $key => $value){
- $i = 5;
- echo "<table><tr><th>".$key."</th>";
- foreach($value as $key2 => $value2){
- echo "<th>".$key2."</th>";
- }
- echo "</tr><tr>\n";
- foreach($value as $key3 => $value3){
- foreach($value3 as $key4 => $value4){
- if($i == 5){echo"<td>".$key4."</td>";}
- echo "<td>".$value4."</td>";
- $i++;
- }
- }
- echo "</tr>";
- echo "</table>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement