Run a simple Update Query
$result = mysql_query("UPDATE example SET age='22' WHERE age='21'") or die(mysql_error());
DZone Snippets > nothingless > mysql
12388 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Sasha http://nothing-less.net
$result = mysql_query("UPDATE example SET age='22' WHERE age='21'") or die(mysql_error());
update tablename set field = replace(field,'search_for_this','replace_with_this');