473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Search a database using 3 fields and an input text box.

Hello,

What I know:
To send a Value in the URL and filter the results in order to display
only the database records which FIELD_A = Value.

What I need to do:

I have a page with an Input Text Box and a Search Button.
Each record of my database has 5 fields:
ID, Title, Author, Editor, Date.

In the Input Text Box keywords are entered by the user.
When the Search Button is pressed I want to show all records, in a new
page, which contains one of those keywords in Title, Author or Editor
fields.

Can someone help me out with this?

I am working with Dreamweaver MX 2004 and ASP.Net / VB.

Thank You,
Miguel

Nov 18 '05 #1
1 1891
Miguel,
This is more of a database question than anything because your query
will have to do the heavy lifting. Your query will have to compare each
keyword to your fields. From the ASP.NET side it's easy. Just do a
Split( ) on the textbox value to get an array of keywords. After that, it's
SQL. I'm assuming that you are capable with SQL, so I will suggest that you
pass in the keywords to the query in a comma-separated string. Then in your
query, you can convert this string to a rowset and perform the joins and
comparisons necessary.

For help with your query, I suggest posting to a SQL newsgroup. The ASP.NET
side is easy.

Best regards,
Jeffrey Palermo

"Miguel Dias Moura" <we****@27lamps.com> wrote in message
news:OE**************@TK2MSFTNGP09.phx.gbl...
Hello,

What I know:
To send a Value in the URL and filter the results in order to display
only the database records which FIELD_A = Value.

What I need to do:

I have a page with an Input Text Box and a Search Button.
Each record of my database has 5 fields:
ID, Title, Author, Editor, Date.

In the Input Text Box keywords are entered by the user.
When the Search Button is pressed I want to show all records, in a new
page, which contains one of those keywords in Title, Author or Editor
fields.

Can someone help me out with this?

I am working with Dreamweaver MX 2004 and ASP.Net / VB.

Thank You,
Miguel

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: CharitiesOnline | last post by:
Hello, I have set this script up to add paging to a search results page. Which on the first page works fine. I calculates how many pages there should be depending on the number of results returned...
8
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled...
1
by: Eric | last post by:
Hi: I have two files. I search pattern ":" from emails text file and save email contents into a database. Another search pattern " field is blank. Please try again.", vbExclamation + vbOKOnly...
1
Merlin1857
by: Merlin1857 | last post by:
How to search multiple fields using ASP A major issue for me when I first started writing in VB Script was constructing the ability to search a table using multiple field input from a form and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.