@Ric****
down here in Bangkok at the two international airports you CANNOT get a re-entry permit unless you are flying out internationally that day. They'll just send you away.
I dunno how Chiang Mai is but I would guess seeing as you have to go thru security to International Departures that if you're NOT departing internationally they aren't gonna let you in.