php - Deleted from comma separated list in MySQL table -
php - Deleted from comma separated list in MySQL table -
i have comma separated list stored in 1 row in column in mysql database (eg. phrase1, phrase2, phrase3, phrase4). want write query deleted 1 of values comma separated list, 'phrase3', , comma, making list (phrase1, phrase2, phrase4). ideas?
the list generated next code if helps:
$q6 = "update post set denied_user = concat_ws(', ',denied_user,'$claimer_id'), denied_time = concat_ws(', ',denied_time,now()) post_id = '$post_id' , user_id='$user_id' , denied_user<>'' , denied_user not '%$claimer_id%' , post_status='active";
php mysql sql comma
Comments
Post a Comment