Forum Moderators: coopster
$query = "UPDATE table_name SET field = '".[url=http://us3.php.net/manual/en/function.mysql-real-escape-string.php]mysql_real_escape_string[/url](substr($text,15))."'";
Best of luck :)
P.S. The reason I omitted the '25' in the substr function is because you only want to remove the first 15 characters. By putting the 25 there you are also limiting the length of the string to 25 characters.
Here's the corrected syntax for MySQL:
UPDATE table_name SET field = SUBSTRING(field,15);