Skip to content

Instantly share code, notes, and snippets.

@andyhawthorne
Created November 3, 2012 19:36
Show Gist options
  • Select an option

  • Save andyhawthorne/4008431 to your computer and use it in GitHub Desktop.

Select an option

Save andyhawthorne/4008431 to your computer and use it in GitHub Desktop.
public function day_tasks($day)
{
$sql = "SELECT * FROM tasks_list WHERE due = '" . $day . "'";
$q = $this->db->query($sql);
if($q->num_rows() > 0)
{
foreach($q->result() as $row)
{
$data[] = $row;
}
return $data;
}
else
{
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment