If you showed up here without having bought a visa from a thai consulate before you winged your way here and were stamped in FREE for 30 days you got in on what's called a 'visa exempt entry' <- it's not a tourist visa, not a visa at all, just a free entry stamp
You can extend that once for 30 days for 1900baht.
In bangkok you go to the 3rd floor immigration office out at IT Square Laksi Plaza. (there are photo/copy shops next to immigrations).
This is where you go
***********************************