Address

Stuff that don´t fit in the other categories.
Post Reply
User avatar
LuiM
Newbie
Newbie
Posts: 2
Joined: 09 Oct 2006, 16:00
17

Address

Post by LuiM »

Someone has given me a hand written list of all there contacts home addresses, and they would like me to type up, and print them off onto labelled paper, however they would like them in alphabetical order. There are about 150 - 200 addresses,

Getting to the point...what is the easiest way i can type all these up, and then have them arranged into alphabetical order to then print onto the labelled paper?

Any help would be much appreciated

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Well, i'd type them up, in a text file formatted like this:

"addresses.txt"

Code: Select all

Name, Address

Name, Address

Name, Address
Then, i'd make a php file do this:

Code: Select all

<?PHP

$addresses = file("addresses.txt");

sort($addresses);

$open = fopen("alpha_addr.txt", "a");

for($a = 0; $a < count($addresses); $a++)
{
fwrite($open, $addresses[$a]);
}

fclose($open);
header("location: alpha_addr.txt");

?>
I've actually done something like this before.
¯\_(ツ)_/¯ It works on my machine...

User avatar
LaBlueGirl
Suckopithicus chickasaurus
Suckopithicus chickasaurus
Posts: 513
Joined: 22 Mar 2006, 17:00
18
Location: Brussel
Contact:

Post by LaBlueGirl »

We always used WP for smaller databases.
It was my job to enter in roughly a thousand of inmate's addy's for civil suits.

I'm not on a Windoze machine nor have I been on one for over a year, so I can't accuratly say which prog you can use for this.

(Someone else may know, sorry).

You can prolly find freeware database progs online, too.

Bonne chance

LBG
"Hey, Crash!
Ever tried walking with no legs?

It's real slow!"
~Crunch, Crash Bandicoot TTR

User avatar
bennybill
suck-o-fied!
suck-o-fied!
Posts: 69
Joined: 21 Nov 2006, 17:00
17
Contact:

Post by bennybill »

Couldnt u use microsoft works spreedsheer or excel and aranged it in to wat order ur trying to do or would that not work.

B3^

Post Reply