jamesd116
05-29-2011, 04:09 AM
I am not sure if this is possible but here is what I am trying to do. I am very new to PHP and tried to look through some of the php codes and i am not sure i foreach or while will work for this or not. I do not have any coding because I am not sure where to start with this.
db includes
location id
state name
county name
city name
In stead of adding each city in indivudally as
state
county
city
I want to enter multiple entries at once with the state and county being added to each entry city and each city going into the db table as its own entry
form to be constructed as
state
county
city
city
city
city
city
city
city
city
city
city
city
city
city
city
any suggestions creating the form is not the problem but creating the separate entries while inserting the state and county into each one.
Thanks
db includes
location id
state name
county name
city name
In stead of adding each city in indivudally as
state
county
city
I want to enter multiple entries at once with the state and county being added to each entry city and each city going into the db table as its own entry
form to be constructed as
state
county
city
city
city
city
city
city
city
city
city
city
city
city
city
city
any suggestions creating the form is not the problem but creating the separate entries while inserting the state and county into each one.
Thanks