Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $post = $CI->post->read(array(
- 'id' => $pid_dec
- ))->row();
- exists($post);
- $new_post = $CI->post->create(array(
- 'parent_id' => $post->parent_id,
- 'in_reply_to_id' => $pid_dec,
- 'content' => $reply_text,
- 'content_syntax' => "markdown",
- 'user_id' => $uid_dec
- ));
- $CI->thread->update(
- $new_post['id'],
- $new_post['parent_id'],
- $new_post['in_reply_to_id'],
- $uid_dec
- );
Add Comment
Please, Sign In to add comment