Page 1 of 1

Stuck on where to go from here.

Posted: Mon May 29, 2006 4:11 pm
by akimm
I do not want the code written for me. I am simply new at really writing code homemade. In as much as modifying pre-existing scraps is really where my prior knowledge rests.

My purpose and goal is to take information from a form, send it to my page and write it on the page without using a mysql db, because, I don't have one available to me unfortunately.. I figure flatfiles will be sufficient. My exact purpose for this system is to allow users to add words they've made up to my dictionary. Another goal would be for me to take these words and file them alphabetically on their corresponding page.

My questions are.. do you know of any functions that sort alphabetically.

Would it be wise to place each letter and words that go with it in an array, or how do you think I would find my quickes tand easiest fix?

Any help that can be provided, I am infinitely grateful for!

Re: Stuck on where to go from here.

Posted: Mon May 29, 2006 4:14 pm
by Roja
akimm wrote:My questions are.. do you know of any functions that sort alphabetically.
Yes, Sort does.
akimm wrote:Would it be wise to place each letter and words that go with it in an array, or how do you think I would find my quickes tand easiest fix?
Depends on how many words you anticipate. Keep in mind that some letters (RSTLNE) occur more often in the english language, and as a result, will be considerably larger than other letter files (QZ, etc).

ok.

Posted: Mon May 29, 2006 4:18 pm
by akimm
Would I be better using a class file for my job.

And can I use flatfiles to store each array, or even more prevalent all the arrays, and then just output that information on the flatfiles for any one letter.

by the way...

Posted: Mon May 29, 2006 4:19 pm
by akimm
Thanks for the sort() I will keep that in mind when constructing my code.

"Roja"

Posted: Mon May 29, 2006 4:22 pm
by akimm
I will not expect a large amount of words, and besides I have confidence in arrays.

A random quote generator I made has over 200 quotes in an array and it seems to operate rather fast.