Welcome Guest, Not a member yet? Register   Sign In
using active record (delete)
#6

[eluser]cahva[/eluser]
Well that kind of explains why it doesnt work. Its trying to delete role_id with id '"34"' (with quotes). Have you done something to the variable when putting it to $crudColumnValues['id'] variable? Does your code work if you use:
Code:
$this->db->delete('sec_role', array('role_id' => $this->input->post('id')));


Messages In This Thread
using active record (delete) - by El Forum - 12-28-2009, 03:07 AM
using active record (delete) - by El Forum - 12-28-2009, 03:41 AM
using active record (delete) - by El Forum - 12-28-2009, 04:31 AM
using active record (delete) - by El Forum - 12-28-2009, 07:57 PM
using active record (delete) - by El Forum - 12-28-2009, 08:18 PM
using active record (delete) - by El Forum - 12-28-2009, 09:14 PM
using active record (delete) - by El Forum - 12-28-2009, 11:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB