Hello Zauchostez26
I suggest to buy the tickets from Basel Bad Bf to Frankfurt Flughafen on bahn.de. You may have better saver offers as on sbb.ch. You can also see the likely occupancy of the train and decide if you need seat reservations or not. Trains in Germany are often delayed, arrive early enough at the airport.
Kind regards
Danhiel