Skip to content

Instantly share code, notes, and snippets.

@DavidMellul
Created February 28, 2018 17:33
Show Gist options
  • Save DavidMellul/70f0d051b2b73da2d30dcda4c70dd218 to your computer and use it in GitHub Desktop.
Save DavidMellul/70f0d051b2b73da2d30dcda4c70dd218 to your computer and use it in GitHub Desktop.
<?php
/* Database configuration and so on...*/
$todo_list = $database->retrieve_all_todos();
<ul>
foreach($todo_list as $todo) {
echo "<li> Task number $todo['id'] -> $todo['description'] </li>";
}
</ul>
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment