Loop Through the Activity Records
Use a PHP foreach loop:
php
<?php foreach ($activities as $activity): ?>
php
<?php foreach ($activities as $activity): ?>
<tr>
<td>
<?= htmlspecialchars(
$activity['activity_log_id']
) ?>
</td>
</tr>
<?php endforeach; ?>
text
Database Records
↓
fetchAll()
↓
$activities
↓
foreach
↓
HTML table rows
Sign in to save your progress permanently.
Progress is saved in your browser session
Step 5 of 7