The problem
I have a SQL database named "matches" with a textfield named "events". In this event there is some data and I want to add a string to this data. For example: the existing data is "Goal: Aguero" and I want to add, with a SQL statement, the data: ", Yellow card: Ozil", so that I get the result: "Goal: Aguero, Yellow: Ozil"
What I've already tried
I've tried many things but I don't get the right solution. I've tried the dot function: 'Goal' . 'Yellow' but it doesn't work. I've also tried the CONCAT() function, but it doesn't work too.
Some code that I've tried:
$sql = "UPDATE matches
SET events.UpdateBy = CONCAT('Goal: Aguero',' ','Yellow card: Ozil')
ORDER BY id DESC LIMIT 1";
$sql = "UPDATE matches
SET events = 'Goal: Aguero' . ' Yellow card: Ozil'
ORDER BY id DESC LIMIT 1";
Can anyone help me? Many thanks in advance!