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
Address
Well, i'd type them up, in a text file formatted like this:
"addresses.txt"
Then, i'd make a php file do this:
I've actually done something like this before.
"addresses.txt"
Code: Select all
Name, Address
Name, Address
Name, Address
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");
?>
¯\_(ツ)_/¯ It works on my machine...
- LaBlueGirl
- Suckopithicus chickasaurus
- Posts: 513
- Joined: 22 Mar 2006, 17:00
- 18
- Location: Brussel
- Contact:
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
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
Ever tried walking with no legs?
It's real slow!"
~Crunch, Crash Bandicoot TTR