Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  str_replace() output?

phpMyEdit General     str_replace() output?
Odoslať novú tému   Odpovedať na tému    
 
andyman     Založený: 25.03.2010   Príspevky: 1  
Príspevok 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)
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov