I have a MySQL table named category. It has a field named id, parent and name like this
http://sqlfiddle.com/#!9/15b7ee/1
can I get this json only with mysql, or must with PHP to create array and encode_json? any sample for this?
I have a MySQL table named category. It has a field named id, parent and name like this
http://sqlfiddle.com/#!9/15b7ee/1
can I get this json only with mysql, or must with PHP to create array and encode_json? any sample for this?