to trouble shoot, change line 40:
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
to:
die($WA_Sql);
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
this will write the update SQL to the screen for troubleshooting purposes.