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

I also have the same problem. Deleting data from 2 tables. Here's the 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;
return false;

Data gets deleted however, it returns false.

Theme © iAndrew 2016 - Forum software by © MyBB