Welcome Guest, Not a member yet? Register   Sign In
Update sql query of multiple fields not working
#2

Try

Code:
$this->db->where('WEBLOGIN', $WEBLOGIN);
$this->db->where('TIE_Codigo', $TIE_Codigo);
$this->db->update('TIENDA', $array);

or

Code:
$condicion = "WEBLOGIN = '{$WEBLOGIN}' AND TIE_Codigo = {$TIE_Codigo}";
$str = $this->db->update_string('TIENDA', $array, $condicion);

You don't need the transaction block if you are performing a single update.

I haven't tested the above code.

Good Luck.
Reply


Messages In This Thread
RE: Update sql query of multiple fields not working - by paulkd - 03-16-2019, 10:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB