I have DB s_id sn_id sec_id
1 1 1,2,3

Based on sn_id i want to display sec_id and sec_name.
I want to convert into json array format like this [{"sec_id":"1","sec_name":"A"}, {"sec_id":"2","sec_name":"B"},{"sec_id":"3","sec_name":"C"}]

Any body helo to get json array format

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.