Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function is_comment_owner($comment_id, $user_id) {
- $this->db->where('comment_id', $comment_id);
- $this->db->where('user_id', $user_id);
- $this->db->from('comments_table');
- if ($this->db->count_all_results() > 0) {
- return TRUE;
- } else {
- return FALSE;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement