I'd just use

SELECT state, city FROM skateparks ORDER BY state, city

Then loop it end everytime the state changes you print the state,
otherwise just the city.


On May 12, 12:39 pm, Kyle Decot <[EMAIL PROTECTED]> wrote:
> They're not stored in separate tables. They're stored in my skateparks
> table which has:
>
> id  |  name  |  address  |  city  |  state  ...etc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to