Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Deleting data from two tables simultaneously
#11

[eluser]ninjayan[/eluser]
I also have the same problem. Deleting data from 2 tables. Here's the code:

Code:
$tables = array('documents', 'document_details');
$delete_transaction = $this->db->where('reference_number', $this->input->post('delete_reference_number'))->delete($tables);
if ($delete_transaction)
{
return true;
}
else
{
return false;
}

Data gets deleted however, it returns false.


Messages In This Thread
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 01-21-2011, 12:14 AM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 01-21-2011, 08:05 AM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 01-22-2011, 06:29 PM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 01-24-2011, 08:14 AM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 01-24-2011, 08:12 PM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 01-25-2011, 07:04 AM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 01-25-2011, 10:08 AM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 02-17-2011, 06:13 AM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 03-14-2012, 02:59 AM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 03-14-2012, 03:37 AM
[SOLVED] Deleting data from two tables simultaneously - by El Forum - 06-05-2013, 07:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB