Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Best way to create a 'search for' page in DWMX
Old 08-16-2005, 01:01 PM Best way to create a 'search for' page in DWMX
VegaLA's Avatar
Skilled Talker

Posts: 64
Trades: 0
Hi everyone,
I have jumped straight in with this one. My intention is to create a page that allows users to search for a specific record (word) from a SQL Database. Now the problems is that what the user is searching for will not be in just one column in the table, but ten. Reason being is that person who set up the DB originally designed it to have ten areas of projects for the user to complete, so the fields are Project 1, project 2, etc..etc, so searching for a specific project is not as simple as looking in one column/field. I have created ten views in SQL and hard-coded a search criteria for testing purposes, and then created a union view to collect and display the results of those ten views, this works fine but now I have got to create a page in DWMX for it. I have a form with a list box that displays all the projects a user may search for, once he finds the project they will click a button and a list will appear displaying all the members of staff working on that project.

What i'd like to know is am I going about this the right way and does anyone have any advice on how to use the views I have created in order to lookup the value from the list down box to search all 10 views to find and display the data ?

Mitch....
VegaLA is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-18-2005, 01:55 PM
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Trades: 0
Its really not as hard as writing so many views if all the columns are in the same table.

You could do something like

SELECT *
FROM tblname_here
WHERE column1 LIKE '%variable%' OR column2 LIKE '%variable%' OR column3 LIKE '%variable%'

...and so on.

Hope that helps!

Daniel
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Reply     « Reply to Best way to create a 'search for' page in DWMX
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20378 seconds with 12 queries