ok, heres the craic;
i have a database table
ID (mediumint auto_inc)
Text (text)
full of 1574 (at present) records. It is currently in testing, but will soon go live. When this happens, practically all of these records have a bit in the 'Text' field that will need replacing with new text.
Id like to be able to write an sql string that will find all the matches, and replace the matches for me, rather than having to churn through each text
For example, if the word i needed to replace was 'Foo' and change it to 'Bar'... id like my sql to be something along the lines of
SELECT * FROM Table WHERE Text = '%Foo%' OH AND WHILE YOURE AT IT REPLACE ALL INSTANCES OF '%FOO%' TO 'BAR';
i CAN write a php file to parse all these fields, get the text, do a ereg_replace / str_replace on the field and update the record using the filtered text, but id like to find a better way, if there is one.