Oh, ok. So you don't need a loop at all. Btw, I think that "(test something) ? 'then something' : 'then something';" syntax is a way to write an if statement. I never use it, can't quite remember.)
You just need to :
<input type="select"(or whatever for dropdowns)> (or you could ehco""; that)
then:
echo $ticket_from; (your <option> list)
</input>
or however you put that in html. sorry, can't remember right now. Usually just have Dreamweaver do it. Wow, I'm spacy today, huh? 😃
The basic setup as I understand what you're doing is to click on the fare, then pass the fare info to editpage.php via url. I posted an example script for that here if you need to do it on the fly. Probably not, since you're going php to php.
editpage, you'd include() your option lists, then pull the fare info or whatever you need with $GET[] or $REQUEST[], and output the right city list based on that info. (if ($_GET["fare"] == "something") {echo $some_city_list;}, etc.)
The best way to do it is to build an example edit system statically (make sure the dropdowns work, etc.), then figure out which parts need to be dynamic and write logic code appropriately. Pull those HTML chunks into your php and go from there.
Does that help any?