If you want to stay longer than a tourism extension of 30 days + a family visit extension of 60 days, you need to apply for a visa. This is general information on visas that are available inside Thailand. But you need to check with your local immigration office for detail. They are each office specific.
**********************************************