Welcome Guest, Not a member yet? Register   Sign In
Query Helper append to existing field.
#4

@InsiteFX This is just different syntax for the same result. It doesn’t escape the value and it’s not more secure.

@Imabot Use the escape function, see https://codeigniter4.github.io/userguide...ng-queries

PHP Code:
$this->db->set('field'"CONCAT(field, " $this->db->escape($string) . ")"false); 
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: Query Helper append to existing field. - by includebeer - 10-04-2020, 07:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB