SHARE
TWEET

Untitled

a guest Dec 15th, 2012 35 Never
  1. foreach($tabledata as $key => $value){
  2.         $i = 5;
  3.         echo "<table><tr><th>".$key."</th>";
  4.         foreach($value as $key2 => $value2){
  5.                 echo "<th>".$key2."</th>";
  6.         }
  7.         echo "</tr><tr>\n";
  8.         foreach($value as $key3 => $value3){
  9.                
  10.                 foreach($value3 as $key4 => $value4){
  11.                 if($i == 5){echo"<td>".$key4."</td>";}
  12.                         echo "<td>".$value4."</td>";
  13.                         $i++;
  14.                 }
  15.         }
  16.         echo "</tr>";
  17.         echo "</table>";
  18. }
RAW Paste Data
Top