t.bo Posted July 21, 2006 Share Posted July 21, 2006 Hello everybody,I have a lot of text and links set in my database. Now i've seen that there's an error in all the links and all the same error. I need to edit them but if im gonna edit every link seperatly its gonna take me a lot of time.How can i edit database content really fast. I need something like the Find and replace function in dreamweaver.Could I enter phpmyadmin and use update tablename SET ... ?The links are not in a separate field but together with text in one big content field.Greetz and thanks in advance Link to comment https://forums.phpfreaks.com/topic/15235-fastest-way-to-edit-database-content/ Share on other sites More sharing options...
Barand Posted July 21, 2006 Share Posted July 21, 2006 UPDATE tablename SET colname = 'newval' WHERE colname = 'oldval' Link to comment https://forums.phpfreaks.com/topic/15235-fastest-way-to-edit-database-content/#findComment-61555 Share on other sites More sharing options...
Barand Posted July 21, 2006 Share Posted July 21, 2006 If you just want to change part of a column's value,[code]$srch = 'my.domain.com';$rplc = 'your.domain.com';$sql = "UPDATE tablename SET colname = REPLACE(colname, '$srch', '$rplc')"; [/code] Link to comment https://forums.phpfreaks.com/topic/15235-fastest-way-to-edit-database-content/#findComment-61559 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.