Skip to content

Instantly share code, notes, and snippets.

@AngeloR
Created April 29, 2011 17:08
Show Gist options
  • Save AngeloR/948632 to your computer and use it in GitHub Desktop.
Save AngeloR/948632 to your computer and use it in GitHub Desktop.
Lemondoo - get_todo
<?php
function get_todo($id) {
if(is_numeric($id) && !empty($id)) {
$sql = 'select * from todo where todo_id = '.$id;
return json(db($sql));
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment