0

I need to add some data to a row called "data".

At the moment I am using the Update command but this is overwriting the existing data. I need to hold the existing data and just add the new one to it.

Tstar
  • 488
  • 5
  • 24

1 Answers1

0

Use this

$model::$db->insert('UPDATE table SET data = CONCAT(data, "' . $link . '") WHERE id = "'. $id . '"');

It will concat your data with existing data

Tstar
  • 488
  • 5
  • 24
Md. Sahadat Hossain
  • 3,101
  • 3
  • 26
  • 54