You are here: Find/Replace text in content body « PHP Programming Language « IT news, forums, messages
Find/Replace text in content body

Posted by cewyattjr on 11/15/67 11:46

In a mediumtext field I have many instances of a URL, eg:
'http://myurl.com/index.php' that I want to replace with just '/'

How can I write an update query that will update all instances of the
URL in all records with this field?

eg:

select id, fulltext from content LIKE '%http://myurl.com/index.php%'

But THEN what? I'm working with phpmyadmin, but I guess I could just
write this as a PHP script as well? Probably easier to just inject SQL
using the utility program, tho', eh?

Thanks!

-CW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация