search script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vejuzchill
Forum Newbie
Posts: 3
Joined: Fri Dec 31, 2010 9:52 am

search script

Post 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.
mellowman
Forum Commoner
Posts: 62
Joined: Sat Nov 22, 2008 5:37 pm

Re: search script

Post 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:
vejuzchill
Forum Newbie
Posts: 3
Joined: Fri Dec 31, 2010 9:52 am

Re: search script

Post 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?
vejuzchill
Forum Newbie
Posts: 3
Joined: Fri Dec 31, 2010 9:52 am

Re: search script

Post by vejuzchill »

my brain is going numb try to figure out sql tables. :crazy:
Post Reply