Dropdown and populate Two lists of records

I have two lists

  1. Cities
  2. Zipcodes

Our case is all cities have more than one zipcode.

My application needs to fill a text box with an arbitrary number of cities and their zipcodes.

Mysql table holds the list of cities and list of zipcodes.

Can anybody help me, how to achieve this. Or is it easier without mysql.