daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $post = $CI->post->read(array(
  2.     'id' => $pid_dec
  3. ))->row();
  4.  
  5. exists($post);
  6.  
  7. $new_post = $CI->post->create(array(
  8.     'parent_id' => $post->parent_id,
  9.     'in_reply_to_id' => $pid_dec,
  10.     'content' => $reply_text,
  11.     'content_syntax' => "markdown",
  12.     'user_id' => $uid_dec
  13. ));
  14.  
  15. $CI->thread->update(
  16.     $new_post['id'],
  17.     $new_post['parent_id'],
  18.     $new_post['in_reply_to_id'],
  19.     $uid_dec
  20. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top