![]() |
ERROR: Failed to get field data from Database - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: ERROR: Failed to get field data from Database (/showthread.php?tid=92805) |
ERROR: Failed to get field data from Database - kyanoe - 04-26-2025 I'm creating a surveys manager feature for my website. It can create a survey, edit, and delete. It's fine for the create, but not for the edit. When I'm trying to edit the "pertanyaan" (meaning: question) and added new questions that's not exist in the database, it throws an error like this: ERROR: Failed to get field data from database. That's somehow, it's caused by the update batch from the edit function I created. For more information, the things that I've inspect are: 1. The columns whether on the website or the database are already good. 2. The HTML for loading the data is also good. 3. The data sent is also correct. Here's the full code of edit function: PHP Code: function editPertanyaanData($database, $data) And here's how I call it: PHP Code: public function editSurvey($idSurvey) |