There's no need to escape single quotes within a double quoted string. Delimiting the attributes is definitely worthwhile though. Proper HTML5 as XML should use double quotes, so probably good to plan for the future and use them.

    $notice_msgs = "<table colspan=\"6\" id=\"notice_table\">";