move the echo for the sql so that it is just after the update command line.
change:
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
to:
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
echo("SQL: ".$WA_Sql."<br />");