Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function is_comment_owner($comment_id, $user_id) {
  2. $this->db->where('comment_id', $comment_id);
  3. $this->db->where('user_id', $user_id);
  4. $this->db->from('comments_table');
  5. if ($this->db->count_all_results() > 0) {
  6. return TRUE;
  7. } else {
  8. return FALSE;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement