Here's an example:
* "The cat sat on the mat," she said.
However, in British English, the comma goes outside the quotation marks.
* "The cat sat on the mat", she said.
So, the placement of the comma depends on which style guide you are following.