kwangu

FAILURE TO GET 3 VALUES SENT THROUGH JSON

Apr 29th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. VIEW
  2. $.getJSON('/index.php/admin/move_page/'+node.id.replace(/.*_/,'')+'&parent_id='+(p==-1?0:p[0].id.replace(/.*_/,''))+'&order='+new_order);
  3. CONTROLLER
  4. <?php
  5. public function move_page($id ='',$to ='',$order=''){
  6.    
  7.      $data = array(
  8.         'i_d' => $id,
  9.         't_o' => $to,
  10.         'oda' => $order
  11.        
  12.         );
  13.      return $this->db->insert('sent_values', $data);
  14. ?>
Add Comment
Please, Sign In to add comment