<th>Дата</th> </tr> </thead> <tbody> <?php for ($i = 0; $i < count($res); $i++) { ?> <tr > <td> <?php print $u_name = $test_name_obj->getUserPib($res[$i]['user_id']); ?> </td> <td> <?php print $t_name = $test_name_obj->getTestName($res[$i]['test_id']); ?> </td> <td> <?php print $res[$i]['result']; ?> </td> <td><?php print $res[$i]['date']; ?> </td> </tr> <?php }