This topic is locked

Add a new paragraph to a value while keeping last one

1/22/2020 12:22:59 PM
PHPRunner General questions
H
harveyspecter author

Hello,
I need to add a new paragraph to a field.
For Example:
My field is:

-----------------

Some text.

-----------------
I want to keep the "Some text." and want to add a new paragraph and make the value like this:

-----------------

Some text.

Some new text.

-----------------
I was using this code to change to whole field: (But it changes the whole)



$sql7 = "UPDATE is_takip_new SET yapilacak_is= 'Some new text' WHERE ID = ".$ID;

db_exec($sql7);


Need help on this. Thanks alot!