⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

add action button to copy a row



j-gun

j-gun
  • profile picture
  • Member

Posted 19 February 2013 - 06:25 AM

Try to change this code function copyrows($id) { $this->load->model('customer_model','customers'); $this->load->model('standby_model','standby'); $this->customers->insert($id); //insert into another table first $this->standby->delete($id); //then you can delete the source } } with default value: function copyrows($id=0) { $this->load->model('customer_model','customers'); $this->load->model('standby_model','standby'); $this->customers->insert($id); //insert into another table first $this->standby->delete($id); //then you can delete the source } }

victor

victor
  • profile picture
  • Member

Posted 19 February 2013 - 09:23 AM

the problem has been solved. I helped him.

DREON

DREON
  • profile picture
  • Member

Posted 12 March 2013 - 02:47 AM

please show your code here, to help every one..


juanmoras

juanmoras
  • profile picture
  • Member

Posted 02 May 2013 - 11:03 AM

I think you should use row_array() instead of result_array()

 

http://ellislab.com/codeigniter/user-guide/database/results.html


victor

victor
  • profile picture
  • Member

Posted 02 May 2013 - 18:23 PM

The problem have been solved. He had wrong code.