Andy,
Why not just set up an update loop to pull each link value out, run the expression on it, then insert the new value into the DB? Here is a very generic example:
<?php
include('connect.php'); // Connect to the DB
$result = mysql_query("SELECT ident, link from <table_name>"); // ident = key of table
$i = 0;
While($row = mysql_fetch_array($result)) {
$content = eregi_replace("\?(id|m)=(.+)\"","\2/\"",$row[link]);
$result = mysql_query("UPDATE <table_name> set link = '$content' where ident = '$ident'");
$i++; // Update the counter
}
echo "Update complete... $i links updated.";
?>
Hope this helps...
John Cornett
Senior Development Engineer
Web Teks, Inc.
http://www.web-teks.com
E-Mail: john@web-teks.com