Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在codeigniter中使用jQueryAjax更新表单数据而不再次上传图像?_Jquery_Codeigniter - Fatal编程技术网

如何在codeigniter中使用jQueryAjax更新表单数据而不再次上传图像?

如何在codeigniter中使用jQueryAjax更新表单数据而不再次上传图像?,jquery,codeigniter,Jquery,Codeigniter,视图: 第二个错误: Message: Undefined index: company_logo 那么,我如何解决这个问题呢?请帮帮我 感谢您首先删除if部分中的 Message: count(): Parameter must be an array or an object that implements Countable 并删除其他部分中的图像上载代码。如果未添加图像,是否打印($files)?你得到了什么?我得到了Array()@SanjitBhardwajtry count($

视图:

第二个错误:

Message: Undefined index: company_logo
那么,我如何解决这个问题呢?请帮帮我


感谢您首先删除if部分中的

Message: count(): Parameter must be an array or an object that implements Countable

并删除其他部分中的图像上载代码。如果未添加图像,是否打印($files)?你得到了什么?我得到了
Array()
@SanjitBhardwajtry count($files)>0而不是($files!='')相同的错误
消息:未定义索引:company_logo
@SanjitBhardwajremove整个图像保存代码在其他部分,它没有使用
Message: Undefined index: company_logo
Message: count(): Parameter must be an array or an object that implements Countable
 if($files!='') // put here if(count($files) > 0)