Hello, after I changed ADD to save, it always prompts that the modification failed, but if it is add, it can be added successfully. What is the situation?
Gread2019-05-29 19:47:35
In the edit method, you also need to get the id from the hidden field and save it to data[] $data['id']=I('id');
DayDayUp2017-08-10 09:21:16
For example, if you use the ID field as a condition to update a data row, you must pass in the ID field as a condition. And you need to add a hidden field, assign the ID to it and submit it as a form. The ID of the previous page can no longer be used
<input type="hidden" name="id" value="{$info.id} " />
大家讲道理2017-08-09 17:55:33
To modify, please add a hidden field to the ID value of the incoming article on the submission page