Multiple Search

How to perform multiple search using asp in website, the search from local adn remote database.
the local search is working properly, but the remote search stil kinda stuck with it...
my local search script(work well):

dim Connection
set Connection = server.createobject("ADODB.Connection")
Connection.open "Provider=SQLOLEDB;DATA SOURCE=PROTOS;UID=smc;PWD=project;DATABASE=Virtual-Observatory"

how to attach the remote database search for the same website??

View Replies


ADVERTISEMENT

Multiple Search

i need to make some choices in my search code by adding 1 drop-down box or more like that

<SELECT size=1 name="items">
<OPTION selected value="all" >all</OPTION>
<OPTION value="1" >item 1</OPTION>
<OPTION value="2" >item 2</OPTION>
<OPTION value="3" >item3</OPTION>
<OPTION value="4" >item 4</OPTION>

</SELECT>
so my search string will be
select * from table where rs("itemID") = '"&items&"'

and my quiz is if i want 2 make the drop-down box (items) = all i mean i want the sql statment sellects all of the names what should b the value of the all option ?

note im using 3 or 4 drop-down box and i may nedd the value of some of them to b all and the othere takes any value.

View Replies View Related

Multiple Variable Search

i have a form (22 different criteria although I'm only showing 3) and want to be able to enter criteria into and have it search the database. Code:

View Replies View Related

Multiple Table Search

I want to do is search through a database based on what was selected on a form.It will be based on state, county, and category.Out of the search I just want one field out of the database, the email field. Now, at first I had one table to mess with so I was using this:

strSQL = "SELECT DISTINCT EMail FROM Info WHERE Category='" & category &"' AND State='" & state &"' AND County='" & county &"'"

the way the database is going to be set up now what I need to do is search through one table that will have all the states, counties, category, and UserID fields.Then it has the other table that will have a UserID field and an email field.So I guess it needs to go through the first table and depending on what state, cat, county were selected it will take that UserID and match it to the UserID in the email table and then pull the emails that match UserID.UserID? Would this use JOIN? UNION? How would this be done, to take the form info and search the one table and then depending on what userid matches the state, county, and category in that table it matches that userid to the userid in the email table and pulls the emails from the email field.

View Replies View Related

Search Multiple Tables

i have a simple search page which i want to search mutiple tables with different layouts so i can return the search results in one recordset. how owuld i do this?

View Replies View Related

Search Multiple Forms

I am searching for a specific record based on different criteria:

First Name, Middle Name, Last Name, City, State, Zip Code, File Number

I am using sql server to store all the information.

View Replies View Related

Multiple Field Search

how to search multiple fields in an access database?Basically I want the code to search an entire table, field irrelevant.While I'm at it, does anyone know how to make the same search not care about word order or placement?

Such as:
Search string: "John went to the store"

returns the same results as

Search string: "The store went to John"

Just thought I would throw these out there and see what direction anyone can lead me.

View Replies View Related

Multiple Search Words

I have a small form which searches a SQL DB on several fields - ie.

WHERE Field1 = xxx AND Field2 = xxx AND Field3 = xxx

How can I do this so that if one search criteria is left blank, it ignores it instead of trying to match it in the DB?

View Replies View Related

TRIMMING MULTIPLE KEYWORDS On Search Page!

I am trying to make a search page. Once a serach word or words is put in I need it to serach multiple product tables and output the description of any prioduct if the search word is present in the description.

However, If i put in 2 keywords like "paper sticker" I get no results. How do you search multiple keywords? Code:

View Replies View Related

Search DB Based On Multiple Form Fields On Submit??

I have a form on one page where someone selects a bunch of options and details about a specific category. Then on the next page they fill out a form with contact information, name, address, email, etc.

Well what I want to know is when they click Submit on that contact form is there a way to have it so it goes through and searches the database for any that match the state and county(which they will select from a )??

So what I basically want right now is for the first form to be filled out, then the second form to be filled out, then when they are submitted it will go through the database and select everyone in there with that state and county, then on the next page display the results of both forms AND the matches in the db(obviously whatever fields I want it to display).

I already have both forms(basic html), I already have the dynamic dropdown for state and county(classic asp), what Im wondering is how do I put that dynamic dropdown in the contact form and then when submitted it will go through and search the db based on what was selected there. Would this be some sort of onClick for the submit button tellin it to search the db based on the dropdown or how would I get started on something like this?

There will be other information on the dropdown like name address email so one problem I was wondering about was my dropdown menu. When you select the state it refreshes the page and then loads the counties, so wouldnt that erase anything that was filled out on the form?

I could make it so they actually type the name of their state and county but that causes problems too because if they mispell either then it wont return any results.

View Replies View Related

Retrieving Information From Database Using Multiple Search Criteria

I am trying to search for clients contained within a database using multiple search criteria that the user is able to select using a front end form.

The user is able to select there criteria by selecting one or more check boxes and the results are thus retrieved based on what the user has selected. The search works fine until you try and select multiple client types Code:

View Replies View Related

SQL Server - Update/Insert Multiple Cols Into Multiple Tables

Just as the title says I am trying to do something impossible with a single SQL statement. I am doing an ASP webpage for internal use at the company I work for.

I want to know if there is a way to insert/update data into multiple tables in 1 SQL statement.

If it requires functions | views or anything else that is fine but I don't want to have 3-4 different SQL statements to update 2-3 different columns in different tables.

View Replies View Related

Searching Multiple Memo Fields In Multiple Tables In Access

I have a search option on my website, which should perform a search on 4 fields, as follows:

tblNews
headline
content

tblDatabank
filename
description

It only needs to return matches which are an exact match of their search criteria. For instance, searching for "I am here" would return a record which contained "I am here", but not just "I" or "I am" etc.

I need to return all these records as part of one recordset preferably, as I want to be able to order them etc., though I imagine you may suggest I use an array somehow to merge two recordets etc., then reorder them?

View Replies View Related

Need To Convert Google Search Ref To Find What The User Search

i get the ref url that come to my site and i want to convert it to find
out what was the query in (google or other searcher sites)

foe example : if someone goes to google and search some text and my
site was in his resaults and he click on it , in my site i see his link
ref like
http://www.google.co.il/search?hl=i...91-Google&meta=

i want to know (in asp and save it to DB) what was the word or words
that the user write in search engine.

View Replies View Related

How To Update Multiple Records With Different Multiple Value

i hav problem with updating the data. In the asp page i hav displayed records based on search criteria. in display mode im displaying the to be updated field in combo box for each similar contract_no. each contract_no will hav different no of rows and to be updated combo box.

based on the selected value in the combo boxes of different contract_nos i hav to update the combo value with old value. user select multiple combo values at a time I need anybody's help with detailed programming logic.

View Replies View Related

Search Within Search Results

I am trying to create a parametric search within a table (in the column headings). My first page (search.asp) allows you to choose parameters from a dropdown box, such as package and volts. You click "search" and it reads the Access dbase to yield the results.

The results page (results.asp) displays the information based on the parameters. Under the package column heading, I have the same drop down box, and I am able to once again choose the package I want and the table will refresh. Code:

View Replies View Related

Search Box

I have list of songs in table in asp page. I would like to put a link to each song so when user click on one I can search database for it's data. How to do that?

View Replies View Related

Search

i have a database with 5 tables,
on my web site i have a search bar..
i wana link that search bar to my tables so..
when ever some 1 searchs for a product, the search bar shows that all the simmuler products to what they searchd for..

View Replies View Related

ASP Search Using Asp

I was wondering if there was a way to search pages using ASP or ASP.NET.

I have roughly 5000 static html pages (an online library of sorts) and wants a serch feature. Is there any way to do this?

View Replies View Related

Search

how to search within the selected category?? Example : Search "bubble clock" in category,Clock and watches.

View Replies View Related

Search

I have a search page that has ms frontpage database wizard results showing. The thing is, is that I want to have the search form on other pages besides my search.asp page. Does anybody know how to make a search form on a seperate page that submits the search to the database and displays the wizard results on the search page.

View Replies View Related

Search When EOF And Not EOF

Need help here~ =) ..For -> while not rsConfiguration1.EOF ... blah blah blah

How to write my code so that even if its not End of record, it will still search my db?

In short : I want the db to be able to search under 2 circumstances : EOF and not EOF

View Replies View Related

Search

How could I try and make the most important result from a search show up on top?
I was thinking of having a result where the strSearch is the most to the left come up on top but else then that vague and not necessarly effective option I have no idea on how to do this.

View Replies View Related

Search

Intranet tech support system using ASP/VBScript running on W2000 Server,
IIS, and using SQL Server 2000. I need to add a search engine. The problem
with using a regular SQL query is that if you put a phrase, say "red car" in
the text box, to hit submit, my SQL qurey would only look for that phrase,
and would leave out other items where the words red and car appeared
separately. I guess what I am saying is that I would like something like
Google or other search engines, which would find results which seem to fit
the criteria typed into the box, and rank them and highlight key words.
My research so far has shown me that SQL Server has something called
Full-Text searching, and I have tried to read up on that in BOL, but not
really seeing how I can apply it. I wonder if there's already some tutorials
or sample code out there. I have done some looking on the Web, but still
haven't found much.

View Replies View Related

ASP Search

I have created an asp server page as described in the
Microsoft Article 318387 HOW TO: Query Index Server Data
by Using ASP in FrontPage 2002
(http://support.microsoft.com/?id=318387)

It is running off my IIS server for the search results.
However, the results return only file locations; I would
like it to return a link to the hits. How would I do this?

View Replies View Related

Search

im now doin a search function... but my problem is... if i didn't enter any data in the textbox and then click search button, it will appear all list from database instead of display "please key in data".

I just want to display "please key in data" but not display all records. Code:

View Replies View Related

Search

I'm make a search and I want to limt the results to 10 and have a next button.

View Replies View Related

Search The Web

With Index Server I can search web pages stored on our servers. Is there any
way to programmatically search web pages on the web ?

View Replies View Related

DB Search

I am trying to set up a pge that allows users to search DB for their order status. I managed to get it working with 1 search parameter. I would like to give my clients more then 1 search option to search by.

This is where I ran into problem. I believe it to be with my lack of ASP knowledge and the problem here is with the SQL statement. I do not think that it will work the way SQL statement is set up right now but I am at a loss for correct syntax here. Am I way off ? Code:

View Replies View Related

Search Box

I am relatively new to asp so still need help on it.
On my site I have a search that allows users to search for a specific job skill ie.cobol, asp etc

The problem is that at the moment the search can only search for what is exactly typed in the box eg.

"ASP" this search works fine,
"ASP, HTML" this doesnt because It searches for what is typed in.
I have been told It is something to do with parsing and that this will allow me to search for multiple job skills using commas to split what is typed in. If any body has any ideas I will be very greatfull

View Replies View Related

Search PDF

Does anyone have or know of some ASP programming that will allow me to do a text search of a folder full of PDF files?

I want a user to be able to enter some text and then the programming to do a full text search across all the PDF documents and return the results.

View Replies View Related

MS SQL Search

I want to search the content of some database tables,do asp has some function or tool do this?

View Replies View Related

Search

I have a column in my database where emails are copied to, and i need to be able to search through each entry for certain keywords and display the results if the column contains any of the keywords. i can't figure out how to do this though, because if i use the select statement like this:

select * from maintable where column LIKE ('keyword')
or
select * from maintable where column IN ('keyword')

it will only display the results when the keyword is the only word in the field.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved