• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Database Error Occurred Error Number: 1054 Unknown column 'Array' in 'field list

#4
I got it fixed as earlier it was adding array to the database which was causing the problem where $data is array. Earlier the code was
if($msg=$this->Calibration_model->add_calibration($data)) {
$this->load->model('Logger_model');
$this->Logger_model->write($this->session->userdata('username'),"Add Calibration",$msg);

But now I have changed the code to add string instaed of array
if($msg=$this->Calibration_model->add_calibration($data)) {
$this->load->model('Logger_model');
$this->Logger_model->write($this->session->userdata('username'),"Add Calibration",$msg['msg']);

Now, its working fine . Thanks for your help.
Reply


Messages In This Thread
RE: A Database Error Occurred Error Number: 1054 Unknown column 'Array' in 'field list - by raminderrandhawa - 02-17-2017, 06:59 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.