I'm kind of a noob with mysql but I would like to do something.
I have this upload script that I've been using and everything has been fine until now. I uploaded 150 posts and something went wrong.
Where there was supposed to be a "non-breaking space" I got a question mark instead. Now, if I have too I will, but I'd rather not have to edit them all manually. When I look at the entries in the table there's no "?", just a space. If I edit it with a nbsp it works fine. so something happened with my upload script.
After googling around I found this...
So if I change the code to this, will it work?
I'm not even really sure how I go about running this in phpmyadmin. I can go in and do a single record but have never really done anything on a mass scale. It's something I could live with if I have too but I'm kind of anal so it will bug me for ever if I don't fix it.
Any guidance would be appreciated.
Thanks -- Jon
I have this upload script that I've been using and everything has been fine until now. I uploaded 150 posts and something went wrong.
Where there was supposed to be a "non-breaking space" I got a question mark instead. Now, if I have too I will, but I'd rather not have to edit them all manually. When I look at the entries in the table there's no "?", just a space. If I edit it with a nbsp it works fine. so something happened with my upload script.
After googling around I found this...
Code:
update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');
Code:
update [wp_posts] set [post_content] = replace([post_content],'[?]','[ ]');
Any guidance would be appreciated.
Thanks -- Jon