I wanted to get reloading data, without refreshing the page. Everything works, exepect for the echo syntax. Here is the the echo syntax, maybe I am missing something:
<?php
echo "
    <h2>Abstimmungen</h2>
    <p>Hier werden die Showtime Abstimmungen gelistet.</p>
    <table>
        <thead>
            <tr>
                <td>#</td>
                <td>Titel</td>      
                <td></td>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($polls as $poll): ?>
            <tr>
                <td><?=$poll['id']?></td>
                <td><?=$poll['title']?></td>    
                <td class=\"actions\">
                    <a href=\"vote/vote.php?id=<?=$poll['id']?>\" class=\"view\" title=\"View Poll\"><i class=\"fas fa-eye fa-xs\"></i></a>
                </td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    ";
?>
Thanks in advance
 
     
    