Skip to content

Instantly share code, notes, and snippets.

@AngeloR
Created April 29, 2011 16:49
Show Gist options
  • Select an option

  • Save AngeloR/948609 to your computer and use it in GitHub Desktop.

Select an option

Save AngeloR/948609 to your computer and use it in GitHub Desktop.
Lemondoo - get_todo_list
<?php
function get_todo_list() {
$sql = 'select todo_id, todo_title from todo where completed != 1';
return json(db($sql));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment