John Davidson

php - A Database Error Occurred: You must use the "set" method to update an entry

0 comments
Message:


This is the code:


$this->db->where('id', $id);
return $this->db->update('contractors', ((array) $contractor));

And it gives me the error A Database Error Occurred: You must use the "set" method to update an entry.



My Answer:
"set_dbdriver" method to specify the database driver to be used.

Rate this post

3 of 5 based on 4523 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us