Welcome Guest, Not a member yet? Register   Sign In
Update / Delete on Joined Tables
#2

(This post was last modified: 02-14-2021, 10:13 AM by demyr.)

What about this?

PHP Code:
public function find_party_user($user_id) {

$this->db->select('something')->from('party_table')
->
where('user_id'$user_id);
$where_clause $this->db->get_compiled_select();

$query $this->db->delete('character_table', array('some_id' => $where_clause));


get_compiled_select might be the answer for your problem.
Reply


Messages In This Thread
RE: Update / Delete on Joined Tables - by demyr - 02-14-2021, 10:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB