Jump to content

Recommended Posts

I'm needing some direction in how to start this...  I have a page with the 50 U.S. states listed.  I have a column in my mysql database that holds each state's name called:  source

 

There's a few thousands rows in my database, so the state names vary in the record count. 

 

How can I query the database and have a little count by each one of my 50 states that shows how many results exist in the db for that state?  I know how to query for total rows and show that number... but confused on how I would do it for individual line items.

 

Thanks for any suggestions. 

Thanks for the help. 

 

I should have mentioned that I already got the query to work (though slightly different), but I'm trying to figure out how to pull those results to the page now.. and leave my state names in url form, as they currently are. 

 

Thanks!

Thanks for the help. 

 

I should have mentioned that I already got the query to work (though slightly different), but I'm trying to figure out how to pull those results to the page now.. and leave my state names in url form, as they currently are. 

 

Thanks!

 

Do you have any code so far?  If so, please post it.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.