Jump to content

HELP to make an advanced search phpscript


Equilibrium

Recommended Posts

I am a management student and lately i got an opportunity to make a website on a city based college directory. Well i have a mysql database with 5columns in it, namely "Name of College, Location, University, Stream, Subjects". Its a very big list and hence i like to provide a search option in the website, so that the visitors can search different colleges.

 

Well ofcourse it will be not a very simple search option. I want to make such a search option, so that our visitors can search the colleges by their name or location or university or stream or subjects. Again they can make their choice i.e. they can also search by subjects and university together or by different combination(like subject, university and location together.........etc etc).

 

Okay now after the search i want to display the results in that same table format as it is in the mysql database.

 

I attached a MSWord(doc) file, where u can find exactly what i want.

 

Please guyz help me out, just post the codes or php scripts, which i can use directly to my website. I am not a programmer so I need a serious help over here as this project will decide my future.

 

[attachment deleted by admin]

Link to comment
Share on other sites

I'd probably go with some MySQL FULLTEXT searching, a query like this should get you on the way:

SELECT * FROM `table` WHERE MATCH (`name`,`location`,`university`,`stream`,`subjects`) AGAINST ('keywords' IN BOOLEAN MODE);

 

Fore more information on MySQL FULLTEXT searching, check out the manual page.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.