Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $query_product=$this->db->query("SELECT item,item_sku FROM `item` Where id IN (".implode(',',$res_data).")")->result();
  2.  
  3. exit(json_encode( array('query_product'=>$query_product)));
  4.  
  5. .done(function (res) {
  6.  
  7. //here i need to do something
  8.  
  9. }
  10. $('#itemModal').modal('show');
  11. })
  12.  
  13. {"query_product":"whatever_it_is"}
  14.  
  15. .done(function(res) {
  16. var result = res.query_product;
  17. //any extra manipulation
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement