Page 1 of 1

search script

Posted: Fri Dec 31, 2010 10:14 am
by vejuzchill
OK, I used to use php back in college but i have since forgotten a lot but i still know the basics.

What I would like to build is a script that opens a text file and displays the different itmes listed under that file.
for example

2 drop down boxes. 1 drop down will search by name and return the information listed under that name.
the second drop down will search similarities. example
tom:bike:house:car
james:house:car:tree
alex:tree:car:bike
When i select tree from the second drop down I want it to pull up the information from both james and alex.

I'm not asking anyone to write this for me just get me pointed in the right direction.

Re: search script

Posted: Fri Dec 31, 2010 10:26 am
by mellowman
So my first question is....Would u be able to use a database instead of a text file and i think this problem would be simpler if you integrated some javascript along with php. :mrgreen:

Re: search script

Posted: Fri Dec 31, 2010 10:42 am
by vejuzchill
mellowman wrote:So my first question is....Would u be able to use a database instead of a text file and i think this problem would be simpler if you integrated some javascript along with php. :mrgreen:

Yes i could use a database, and i see how it could be a lot easier. I have a lot of information though. and it would be time consuming, but this is a personal project so time doesn't really matter.
what would you use the java for?

Re: search script

Posted: Fri Dec 31, 2010 2:17 pm
by vejuzchill
my brain is going numb try to figure out sql tables. :crazy: