Skip to content

Instantly share code, notes, and snippets.

@crittermike
Created October 28, 2010 15:01
Show Gist options
  • Save crittermike/651514 to your computer and use it in GitHub Desktop.
Save crittermike/651514 to your computer and use it in GitHub Desktop.
<?php
// Create a new tag.
function add($task_id, $text) {
$data = array(
'task_id' => $task_id,
'user_id' => $this->tank_auth->get_user_id(),
'content' => strip_tags(trim($text))
);
$this->db->insert('comments', $data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment