w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Using CodeIgniters Upload class, trying to put select data in a new array for DB stor

You need to access $data['upload_data'] in the foreach loop:

foreach($data['upload_data'] as $key => $value) {
    if($key == 'image_size_str') {
       $dbImgInfoStore['image_size_str'] = $value;
    elseif ($key == 'file_name') {
       $dbImgInfoStore['file_name'] = $value;

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.