Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 18, 2026
About Us
O nás
Magazine
Magazín
Open Source
Otvorený softvér
CVS
CVS
Services
Služby
Index  »  Projects  »  phpMyEdit  »  Forum  »  str_replace() output?

phpMyEdit General     str_replace() output?
Post new topic   Reply to topic    
 
andyman     Joined: 25 Mar 2010   Posts: 1  
Post Posted: 2010-03-25 01:22
Back to top  Reply with quote     

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     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2010-03-27 14:48
Back to top  Reply with quote     

It might make more sense to back up the table and then clean up the data by dumping a SQL query on phpMyAdmin.

Code:
UPDATE `my_table` SET `my_field` = REPLACE(`my_field`, ''', "'");


 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Odkazový formulár · Application form · Prihláška
Report bug on PLATON.SK website · Upozorniť na chybu na PLATON.SK webstránke · Terms of use · Podmienky použitia · Privacy policy · Ochrana osobných údajov