Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 24th, 2012  |  syntax: PHP  |  size: 0.44 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.              <th scope="row">cat1</th>
  2.                 <?php
  3.                                        
  4.                 function fillTable ($cat) {
  5.                         foreach ($res as $type => $properties) {
  6.                                  // $properties = $res[$type]
  7.                                 foreach ($properties as $property => $value) {
  8.                                         // $value = $res[$type][$property]
  9.                                         if ($property == $cat) {
  10.                                                 echo "<td>".$value."</td>";
  11.                                          }
  12.                                 }
  13.                         }
  14.                         #return ( ZURÜCKGEBENER WERT );
  15.                 }
  16.                                        
  17.                 fillTable(1);
  18.  
  19.                 ?>
  20.                 </tr>