HTML
  Home arrow HTML arrow Using the Find Functions for HTML Database...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Using the Find Functions for HTML Database Forms
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-08-20

    Table of Contents:
  • Using the Find Functions for HTML Database Forms
  • The ordinarySearch() function
  • The getTwoWords() Function
  • The find() Function

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using the Find Functions for HTML Database Forms


    (Page 1 of 4 )

    You may have any number of reasons to find a particular recordset in a database. Sometimes finding what you want is easier said than done. This article walks you through the different search functions (also known as Find functions) and shows you when you should use them. This is the seventh part of a thirteen part series that focuses on database forms with HTML.

    FINDING A RECORD

    Reasons for Finding a Record

    You may have a recordset that is very long. Inspecting the records one row at a time can take a very long time. If you know one of the cell values of the record you are looking for, then a Find function can be written that will locate the record for you and then display it at the Input controls.

    This part of the series deals with two such Find functions. The main Find function is called "Binary Search." The other function I use is called Ordinary Search. I will not explain the operation of the Binary Search function in this series. If you want to know how the function operates, consult the article I wrote for Dev Articles  titled "Binary Searching." In this series I will only show you what goes into the function and what comes out of it.

    The Search Functions

    The starting search function is called the find() function. The ordinary search function is called the ordinarySearch() function. The binary search function is called the binarySearch() function.

    The find() function does not search the recordset. It calls the ordinarySearch() or the binarySearch() function. The ordinarySearch() function is called when the recordset is not sorted, while the binarySearch() function is called when the recordset is sorted.

    It is these two functions that do the search; I will explain more about this later. There is another function associated with the find() function; this is the getTwoWords() function; again, I will cover this in more detail this later.

    More HTML Articles
    More By Chrysanthus Forcha


       · Let's continue with this part of the series.Chrys
     

    HTML ARTICLES

    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP
    - Background Images for a Menu for All Browsers
    - React and ToChoose Functions for a Menu for ...
    - Fast FAQ Session with ACP
    - Functions for a Menu for All Browsers
    - Browser Compatibility Modifications for a We...
    - Building a Drop-Down Menu with Nested HTML L...
    - Table Attributes for a Menu for all Browsers
    - Modifying a Web Page Calendar
    - Styling Elements of Nested HTML Lists
    - Configuring Tables for a Menu for All Browse...
    - Showing a Full Year with a Web Page Calendar
    - Designing with Nested HTML Lists







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT