if this is the actual code........
mysql_query("INSERT INTO changes (field1,field2,field3,time) VALUES ('$dataWrong','$dataCorrect','$program',NOW(''))",$db);
mysql_query("UPDATE table SET field1='$dataCorrect' WHERE field1='$dataWrong'",$db)
...........add ";" after the second query's ")" . Happy Coding!