Hey everyone,
So for my latest project, I need to get everything from table and, show them in a modal.
My code atm:
and it returns nothing.
Any clues why?
Thanks.
So for my latest project, I need to get everything from table and, show them in a modal.
My code atm:
PHP:
<?php
$getChangelog = $db->prepare('SELECT * FROM changelogs ORDER BY id DESC');
$getChangelog->execute();
$changelog = $getChangelog->fetchAll(); // testing purposes
?>
// modal shit here
<?php
<?php while ($row = $getChangelog->fetch(PDO::FETCH_ASSOC))
{
print_r($row);
} ?>
Any clues why?
Thanks.