which is the correct word order?

She only said..

or

She said only

Any rules for word order?

Both are correct. One may be better than the other in specific contexts.

The general rule is that adverbs can be placed more than one place in a sentence. We try to place the adverb closest to the word we want to emphasize.