SHOW:
|
|
- or go back to the newest paste.
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 if ($field=='second_field') : ?> |
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; ?> |