Add something to a mysql string field
Moderator: General Moderators
Add something to a mysql string field
Lets say a field has the value White, but I want to add " dog" to it, how do I do that in a query?
Code: Select all
var = "e;dog"e;;
mysql_query("e;update myTable set myField = concat(myField, '"e;.$var."e;') where id = $myid"e;)
or die(mysql_error());