Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8672767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:17:08+00:00 2026-06-12T19:17:08+00:00

i have an error Error Number: 1054 Unknown column ‘Nama_Material_Jasa’ in ‘field list’ UPDATE

  • 0

i have an error

Error Number: 1054

Unknown column 'Nama_Material_Jasa' in 'field list'

UPDATE `ms_material_jasa` SET `Kode_Kategori_Material_Jasa` = 'KKMJ004', `Nama_Material_Jasa` = 'batuasdf' WHERE `Kode_Kategori_Material_Jasa` = 'KKMJ004'

Filename: C:\wamp\www\QBA\system\database\DB_driver.php

Line Number: 330

and this is my update model

function update($getid,$getnama)
{
    $data = array('Kode_Kategori_Material_Jasa' => $getid,'Nama_Material_Jasa' => $getnama);
    $this->db->where('Kode_Kategori_Material_Jasa', $getid);
    $this->db->update('ms_material_jasa', $data); 
}

and here is my controller

 function ubah()
{
    $getid = $this->input->post('kkmj');
    $getnama = $this->input->post('nmj');
    $data['pesan'] = $getid.' berhasil diubah ! ';
    $data['title'] = 'QB Ubah Kategori Material';

    $this->m_kategorimaterial->update($getid,$getnama);
    //echo $getid.$getnama; //it returns KKMJ005newVal , like i want

    $this->load->view('head',$data);
    $this->load->view('v/vkategorimaterial',$data);

}

when i echo $getid and $getnama variable, it returns KKMJ005Newval so no problem on controller, i believe it has something to do with the models,

how do i resolve this ?

the table name is ms_kategori_material and it has 2 field, Kode_Kategori_Material_Jasa and Nama_Material_Jasa

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:17:09+00:00Added an answer on June 12, 2026 at 7:17 pm

    You said your table name is ms_kategori_material, but your code reads

    $this->db->update('ms_material_jasa', $data);
    

    So try changing it to:

    $this->db->update('ms_kategori_material', $data);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following Codeigniter (MySQL related) error in my application Error Number: 1100
I am trying to have an error message when the use enters a number
With this code I have error: Object reference not set to an instance of
I'm trying to join tables and getting below error in codeigniter. Error Number: 1054
How does ColdFusion assign an error number/value to cfcatch.ErrNumber? I know I have to
I have PHP code like this: $query = 'UPDATE `user_vote` SET `container` = CONCAT(`container`,
I have an JDBC DB2error, operation timeout or deadlock , error number: -913. scenario:
Error Number: 1064 You have an error in your SQL syntax; check the manual
I'm new to python, and seriously need help! I have a number of errors
My docs contain lists of errors. I have a view which counts the number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.