php - MYSQL - First Database Structure help Please -



php - MYSQL - First Database Structure help Please -

thanks taking time read , attempting help me, appreciate information!

this first time making own mysql database, , hoping pointers. i've looked through previous questions , found possible search multiple tables @ once... expanded posibilities.

what trying do, have searchable / filterable listing of snowmobile clubs on php page.

these clubs should listable state, county or searchable name / other contained info.

i'd them alphabetized in results, despite order of entry.

currently mind in place of , have table ny, pa etc

with columns county(varchar), clubname(varchar), street address (long text) , phone (varchar) email (varchar) website address (varchar)

should making multiple tables each county, such ny.albany , ny.madison

are field formats have chosen sensible ones?

should address broken subcomponents... such street1, street2, city, state, zip

thank much input can provide

eventually, think i'd column "trailsopen" yes or no, , alter tr background greenish or reddish based on input.

hope makes sense... - john

here how setup db:

state id (tinyint) //primary key auto incremented unsigned short (varchar(2)) // stores ny, pa long (varchar(20)) // stores new york, pennsylvania county id (int) //primary key auto incremented unsigned state_id (tinyint) //points state.id name (varchar(50)) club_county id (int) //primary key auto incremented unsigned county_id (int) //points county.id club_id (int) //points club.id club id (int) //primary key auto incremented unsigned name (varchar(100)) address (varchar(100) city (varchar(25)) zip (int) etc...

php mysql table

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -