• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to filter query result to json

Using codeigniter I faced with some problem.
This lib gives us possibility directly transfer model to response and convert to json, but what if I need to filter my json before sending it back, what should I do?
I performed SELECT * FROM users and perform if statements on some properties then I want to send back only first_name and last_name not all columns...

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.