Jump to content

How to Organize a PHP/MySQL List by State


1219

Recommended Posts

I have a list here in static HTML.

 

http://www.donjo.net/where_to_buy.html

 

I have worked on being able to insert store, address, state, URL, phone into a database, however, I am having problems organizing it so that it seperates the stores in the database by State and listing them as in the static version.

 

Thanks

 

Adam

I have setup a temp page here:

 

http://www.donjo.net/test/

 

I am using:

 

SELECT * FROM storeRetailers GROUP BY state ORDER BY state ASC

 

But in the html body it now only shows one store per state instead of them all. Is something wrong with the HTML ia have for state and displaying the address/retailer.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.