My two pence.
"Your problem is not mine," Fred said.
Always a comma, and the said should follow the name, as in he said or she said, said he and said she doesn’t sound right.
Where the speech is broken, then it’s a comma if the speech is a complete sentence. Otherwise if the two sections of speech are different sentences then use a full stop.
Well that’s what I’ve read.
Grinder