Hi i am a bit of a codeigniter newbie, I need a set of values inserting to a databse table, the inputs are created via a foreach loop.
<? foreach ($items as $item){echo' <div class="items-row"> <label for="name_'.$item['item_id'].'">'.$item['item_name'].'</label> <div class="item_input"><input type="text" name="quantity[]" id="'.$item['item_name'].'" value="0"></div> <input type="hidden" name="item_id" value="'.$item['item_id'].'"> <input type="hidden" name="user_id" value="'.$moving_basics_id.'"> </div>'; } ?>
Each item is displayed with a Quanity toggle, and a user id and item id.
How would i go about inserting each value into a database table?
Thanks
Adam