Query Helper append to existing field. |
@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! ***/ |
Messages In This Thread |
Query Helper append to existing field. - by imabot - 10-01-2020, 07:29 AM
RE: Query Helper append to existing field. - by InsiteFX - 10-01-2020, 12:37 PM
RE: Query Helper append to existing field. - by imabot - 10-04-2020, 07:55 AM
RE: Query Helper append to existing field. - by includebeer - 10-04-2020, 07:57 AM
|