andyman
Založený: 25.03.2010
Príspevky: 1
Zaslal: 2010-03-25 01:22
Návrat hore
Odpovedať s citátom
|
I have a table where for various reasons there in an ' in the field content.
Eg O'Reilly as oppsed to O'Reilly
How do I adjust the out put so that it runs this code on the output string:
str_replace("'","'", $phpmyeditfield);
Thanks in advance!
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-03-27 14:48
Návrat hore
Odpovedať s citátom
|
It might make more sense to back up the table and then clean up the data by dumping a SQL query on phpMyAdmin.
| Kód: |
| UPDATE `my_table` SET `my_field` = REPLACE(`my_field`, ''', "'"); |
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|