, a simple one line stating the solution is fine. It lets people know your issue was resolved and what resolved it. When posting a question, however, you want someone to be able to download a script as you've posted it, run it against data you've provided, and see the problem. If it is a syntax question, post some code that you'd think would work (and tell people it's not right). I have found that frequently I uncover my own problems in the process of posting questions for exactly these reasons.