navigation
Thomas Brunt's OutFront Hosting
 
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Spooky's Databases > Querying the Database with a Hyperlink

Forms aren't the only way to query a database.

Now you can search or customize a page based on a hyperlink.

A hyperlink query looks like this:
http:/testing/query.asp?NAME=Bob

This will now link to the page query.asp and supply a variable called NAME with the value of Bob.

You can customize your page to display nothing but Bob's.


Query with hyperlink
The method to set up this query, is the same as in Form Query 

Construct your query page using the above method. This will be the query page you will access with your hyperlink.

On another page add your hyperlink, linking to your query page.

  • Right click on the hyperlink
  • Select 'Hyperlink'
  • After the query page address, type:
    querypage.asp?FieldName=Value
    Where Fieldname is equal to the name of the field in the database you are querying.
    Value is the value you wish to search on.

There are  a couple of changes you can make, for example:

Don't display a search form on your query page:

  • At step 5 of the DRW uncheck the "Add search form"

Multiple field queries

  • More than 1 query can be performed. Add more criteria in step 3 of the DRW
  • After the query page address, type:
    querypage.asp?FieldName=Value&FieldName2=Value

Microsoft Corporation in no way endorses or is affiliated with "OutFront." 
OutFront is published and edited by Thomas Brunt
440 Great Circle Dr., St. Matthews, SC 29135.  803-655-6151
© 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 All Rights Reserved
Click here to view our privacy statement.