
Customizing search results to match queried fields
Hallo Paul,
First of all, thank you very much for your quick answer. I really appreciate
it.
Quote:
> I do believe I understand what you are trying to do.
> I have done something similar on one of my web
> "search_results.htm" pages.
Could you please give me the URL for your database so I could take a look
at it?
Quote:
> All you should have to do in this page is only display the fields that you
> want your users to see after a successful search.
The problem is that: 1) While I want to return student numbers and student
names in every search result table (This is Easy) 2) I *also* want to return
the results for the field or fields that were filled in the search, while
*hiding* the other fields in the search results table. (That is the Hard
part)
Confusing? Let me give you an example:
Company A is looking for people who speak french. So they go to search
page, fill in the "Language Knowledge" field with "French" and press the
Search button.
The search results should look like this:
Student Number Student Name Language knowledge
101 Arthur Boston English, French, German
113 Frank Loot French
146 John Silver Italian, French
Company B, on the other hand, doesn't care about language knowledge.
Instead, they are only interested in checking people who have knowledge
of Java programming language. So they go to the search page and leave
all fields blank, *except* for the Computer Knowledge field which they fill in
with the keyword "Java" and press search.
The search results should look like this:
Student Number Student Name Computer Knowledge
104 John White Pascal, C++, Java
108 Anthony Bean Java
145 Marc Lander Word, Java, Excel
See? In the second search, Language Knowledge shouldn't appear (nor
any other field that is in the database like address, mobile phone, e-mail,
previous work experience, etc). The only fields that should appear in the
results table are the fields that were filled in the search.
So, I guess that what I want is some kind of script that checks the fields
that were filled in the search page and only returns those fields in the
search results page (plus student number and student name)
Was that clear now? Can you Paul (or any other kind soul) please give me
some hint on how I could work this out?
Thanks again.
Best wishes
______________________________________
Ricardo Marques - Texet no IRC (PTNet)
Pgina de ajuda IRC/PTNet
http://www.ricmarques.com
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.