mysql - How to replace html symbols via sql query on php -


i have situation have custom field html symbol (‚). when try replace equivalent (,) cannot it...

i'm using sql query:

$wpdb->query ("update $wpdb->postmeta set `meta_value` = replace(`meta_value`, \'%‚ %\') `meta_value` '‚'"); 

what doing wrong?

to convert ‚ comma, use replace below:

select replace(meta_value, '‚', ',') your_table meta_value ',' 

shown select statement testing, actual update:

update set your_table set meta_value = replace(meta_value, '‚', ',') meta_value ',' 

Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -