I have a query that I am trying to update a MySQL table with
UPDATE `" . TABLE_PREFIX . "TABLE` SET FIELD = CONCAT(FIELD, " . $MyString . ")
$MyString
would contain a useragent like MOZILLA/5.0 (COMPATIBLE; SEMRUSHBOT/1.2~BL; +HTTP://WWW.SEMRUSH.COM/BOT.HTML
but I am getting a syntax error? The field is set up as TEXT NULL
and default is NULL
.
Any help appreciated.
For clarity all I am trying to do is add text to a text field in the database, the text IS exactly like the useragent above!
Kind regards, Simon