In my databse is:
Town1
City1
City2
Town3
Towns and cities split be line breaks.
I need to turn those into an array e.g. $place[] and the be able to sort them and spit them out one by one e.g. $place[0], $place[1], $place[2] etc... which would be City1, City2, Town1
I can then decide how to display them, maybe 2 by 2, maybe 4 by 1 - once they are in an array i can do what I need with them.
Hope this is clearer now - apologies for the miscommunication.
Thanks
Darren
Louie wrote:
I guess I am not following you. YOu say you have a field in your db which has a bunch of city names in it. Then you say you want something like
Town1
City1
City2
Town3
what is the difference between the Town and City And how does the PHP know which is which. At first you said you wanted to have two across now you say you want two by two not 4 by 1. But your db print out contains a hell of a lot more than 4 records. Please clarify what you need excatly!