SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Apr 2007
    Posts
    685
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Searching for entries to place in a form

    Is there an Input type for finding a row in a database?

    The following is the input to find a file on your local computer
    HTML Code:
    <input type="file" name="name" />
    However, what is the input type to search a particular column in a table of a mysql database?

  2. #2
    SitePoint Wizard tgavin's Avatar
    Join Date
    Feb 2003
    Location
    FL
    Posts
    1,051
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is no input type for doing that because you're trying to retrieve data, not input it. You have to perform a SELECT query on the db table to retrieve it. In your case, probably after the form has been submitted.

    Also, the file input isn't for finding a file on your computer, it's for selecting a file. You have to find the file.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •