I'm new to GCRUD, so maybe somebody more experienced can help me.
Let say we have tables `htp_items`, there is column `category_ids` which is varchar (255)
When I use:
$crud->change_field_type('category_ids','set', array('banana' => 'banan value','orange','apple','lemon'));
Question 1: It's inserts/updates with the option name not with it's value. How can I change the behaivor of updating?
I need to be like this:
<option value="banana_value">Banana</option>
<option value="orange_value">Orange</option>
So update data should contain: "banana_value" not "Banana"
Question 2: Is is possible to add suffix/prefix to the data which will insert/update?
Example: When I add a new record I need to add prefix "," and the same suffix "," to data.
Let say we update the same "category_ids" as I mentioned below and update should be like this:
UPDATE `htp_items` SET `category_ids` = "[b],[/b]banana_value,orange_value[b],[/b]" WHERE `id` = 1