Welcome Guest, Not a member yet? Register   Sign In
how to filter query result to json
#1

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?
Example:
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...
Reply




Theme © iAndrew 2016 - Forum software by © MyBB