Everything I've read says that storing serialised arrays in Mysql is a bad idea - I know that already ;) Unfortunately I'm working with an open source script that uses this method, and changing the structure isn't an option in this scenario.
Is it possible to update this URL without first unserialising?
I originally tried using replace, however it throws an error:
$rssquery = "UPDATE config SET `array` = replace(`array`, \"http://www.oldurl.com\", \"http://www.newurl.com\") WHERE name='config'";
$insert = $db->insert($rssquery);
Could not update UPDATE config SET array = replace('array', 'http://www.oldurl.com', 'http://www.newurl.com') as variable supplied must be an array.
Table name: config
Columns: name | array
Row Needing Updated named: config
Cell Needing Updated named: array
Any other ideas or approaches would be appreciated :) Thanks!