solved how can i insert new {key, value} pair to existing table?

alt=
adanhash
@famegroup
10 years ago
15 posts
I need to insert a new value to my item_key table. how can i do it

mymodule_item_key

example: module_status(key)
1 (value)
updated by @famegroup: 10/22/14 03:11:22PM
paul
@paul
10 years ago
4,333 posts
User the jrCore_db_update_item function -

jrCore_db_update_item('YourModuleName', 'TheDataStoreItemID', 'Key/ValueArray');

So you might have code like this -

jrCore_db_update_item('xxMyModule', $_rt['_item_id'], array('module_status'=>1));

hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
alt=
adanhash
@famegroup
10 years ago
15 posts
Thanks a lot

Tags