Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8968185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:24:47+00:00 2026-06-15T17:24:47+00:00

I have a small problem. I am working with some manual testers who are

  • 0

I have a small problem. I am working with some manual testers who are untrained in programming/database design. Our current process means that these manual testers need to insert data into our database at certain times whilst we build a GUI to facilitate this in the future.

In the interim, I would like to create a simple site. What I would like to do with the site is, simply, connect to our database, allow the manual tester to enter some keywords, and return any columns within tables that are close/related to the keywords provided. This would save a lot of time for our testers searching for colums in our (rather large) database.

How could I create a site like this? I think it could be useful for a lot of people, so I have decided to post the question up here to gather the thoughts of StackOverflow.

At the moment, I am thinking a simple PHP page with a textbox, which allows the user to enter some data, separated by commas. Explode the data based on commas, hold it in an array. Connect to my database, then use the Information Schema View to retrieve column information.
My main problem is – what is the most effective way to use the Information Schema View to retrieve columns related to the keywords entered by the users ? How can I ensure the columns returned are the most suitable?

Any input here would be greatly appreciated. Thanks a lot.

Tl;dr is the bolded part, for busy people 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:24:49+00:00Added an answer on June 15, 2026 at 5:24 pm

    I think you could achieve this with a simple form and some ajax calls using on key up.
    Here is a simple example in which the list will update each time the user enters a letter in the column name they are searching for.

    Index.html

      <!DOCTYPE html>
    <html lang="en">
      <head>
      <script type="text/javascript"> 
          $(document).ready(function() {
    
    $("#faq_search_input").keyup(function()
    {
    var faq_search_input = $(this).val();
    var dataString = 'keyword='+ faq_search_input;
    if(faq_search_input.length>1)
    
    {
    $.ajax({
    type: "GET",
    url: "ajax-search.php",
    data: dataString,
    success: function(server_response)
    {
     document.getElementById("searchresultdata").style.display = "block";
    $('#searchresultdata').html(server_response).show();
    
    }
    });
    }return false;
    });
    });
    
    </script>
    
    
      </head>
      <body>
    <div class="searchholder">
        <input  name="query" class="quicksearch" type="text" id="faq_search_input" />
            <div id="searchresultdata" class="searchresults" style="display:none;"> </div>
    </div>
      </body>
    </html>
    

    next we need a script to carry out our search

    ajax-search.php

        //you must define your database settings
    define("DB_HOST", "FOO");
    define("DB_USERNAME", "BAR");
    define("DB_PASSWORD", "YOUR PASSWORD");
    define("DB_NAME", "DATABASE NAME");
    if(isset($_GET['keyword']))
        {
            $search = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_NAME);
                if ($search->connect_errno)
                {
                    echo "Failed to connect to MySQL: (" . $search->connect_errno . ") " . $search->connect_error;
                    $search->close();
                }
                    $keyword =  trim($_GET['keyword']) ;
                    $query ="SELECT COLUMN_NAME FROM ".DB_NAME.".INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME LIKE '%".$keyword."%'";
                    $values = $search->query($query);
                        if($values->num_rows != 0)
                        {
                            while($row = $values->fetch_assoc())
                            { 
                                echo $row['COLUMN_NAME']."<br>";
                            } 
                        }
                        else
                            {
                                echo 'No Results for :"'.$_GET['keyword'].'"';
                            }
        }
    

    As the user types out a column name all of the column name like this will be returned and updated on the fly, without page reload. Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small problem when im working with a menu and a list
I am working on a small Java EE web application. The problem I have
I am working on a small project and i have got a problem. If
I am attempting some pattern matching in Lua and have hit a small problem.
I have a design problem which I would like some input on. Here are
Am working on a small problem and have spent quite a few hours trying
I have a rather intriguing problem I am working on currently. Some backstory: Prerequisites:
I am working on a small project and I need some help. I have
Background: I have a small problem with Eclipse. I'm working on a workbench plugin
have small problem, and would very much appreciate help :) I should convert byte

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.