codeigniter with ajax json_encode not working

i need help please …. the probelm is the codes do nothing, i don’t know what the problem this is my code in View <div id=”ysfhkm_slc_country”> <select name=”ysfhkm_slc_country” id=””> <option value=”ts1″ selected>Test</option> </select > </div> <div id=”ysfhkm_slc_negh”> <select name=”ysfhkm_slc_negh” id=””> <option value=”ts1″ selected>Test</option> </select > </div> <div id=”ysfhkm_slc_city”> <select name=”ysfhkm_slc_city” id=””> <option value=”ts1″ selected>Test</option> </select…

codeigniter with ajax json_encode not working

i need help please …. the probelm is the codes do nothing, i don’t know what the problem this is my code in View <div id=”ysfhkm_slc_country”> <select name=”ysfhkm_slc_country” id=””> <option value=”ts1″ selected>Test</option> </select > </div> <div id=”ysfhkm_slc_negh”> <select name=”ysfhkm_slc_negh” id=””> <option value=”ts1″ selected>Test</option> </select > </div> <div id=”ysfhkm_slc_city”> <select name=”ysfhkm_slc_city” id=””> <option value=”ts1″ selected>Test</option> </select…

Django JSONField, how can i get the count of occurences for values stored in a list

Database is postgres 9.4 In my table i’m using a JSONField class Item(models.Model): item = models.CharField(max_length=200) data = JSONField() Example data JSONField of 3 records: {“color”: [“yellow”, “blue”, “red”], “size”: [“S”, “L”], “material”: “cotton”} {“color”: [“white”, “blue”, “gray”], “size”: [“XL”, “L”], “material”: “cotton”} {“color”: [“yellow”, “gray”, “red”], “size”: [“L”, “XL”], “material”: “cotton”} My goal is…

PHP Script to extract only bundle products from a json file and put them to another file

I am new to PHP and I am trying to get specific data from a json file. Here is the file: { “24-WG085”: { “sku”: “24-WG085”, “product_type”: “simple”, “name”: “Sprite Yoga Strap 6 foot”, “price”: 2.25 }, “24-WG085-dynamic”: { “sku”: “24-WG085-dynamic”, “product_type”: “simple”, “name”: “Sprite Yoga Strap Dynamic”, “price”: 10.45 }, “24-WG086”: { “sku”: “24-WG086”,…