Advertisement
Guest User

Sample code

a guest
Jul 12th, 2014
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php foreach ($rows as $row_count => $row): ?>
  2. <tr>
  3. <?php foreach ($row as $field => $content): ?>
  4. <?php if ($field=='first_field') : ?>
  5. <td>Column A</td>
  6. <?php elseif ($field=='second_field') : ?>
  7. <td>
  8. <table>
  9. <tr>
  10. <td>first column</td>
  11. <td>second column</td>
  12. <td>third column</td>
  13. </tr>
  14. </table>
  15. </td>
  16. <?php endif; ?>
  17. <?php endforeach; ?>
  18. </tr>
  19. <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement