# Basic search box query results

**URL:** https://discourse.processing.org/t/basic-search-box-query-results/27851
**Category:** Beginners
**Created:** [February 15, 2021, 7:51pm UTC](https://discourse.processing.org/t/basic-search-box-query-results/27851 "2021-02-15T19:51:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ghost1](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ghost1/32/9097_2.png) [@ghost1](https://discourse.processing.org/u/ghost1)
#### Post date: [February 15, 2021, 7:51pm UTC](https://discourse.processing.org/t/basic-search-box-query-results/27851/1 "2021-02-15T19:51:02Z")

</div>

Where can I find code to create a simple search box, and it queries, and returns the results below the search box?

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [February 15, 2021, 9:57pm UTC](https://discourse.processing.org/t/basic-search-box-query-results/27851/2 "2021-02-15T21:57:17Z")

</div>

What do you want to search, a local table or the  
Internet?

---

<div class="post-metadata">

### Author: ![ghost1](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ghost1/32/9097_2.png) [@ghost1](https://discourse.processing.org/u/ghost1)
#### Post date: [February 15, 2021, 10:16pm UTC](https://discourse.processing.org/t/basic-search-box-query-results/27851/3 "2021-02-15T22:16:16Z")

</div>

Thanks just a local table, such as a csv file. I am trying to understand where to put the csv file, and then figure out what code is needed to search the the data in the csv file, and perhaps display it in a format I would like… Thanks,

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [February 15, 2021, 10:24pm UTC](https://discourse.processing.org/t/basic-search-box-query-results/27851/4 "2021-02-15T22:24:42Z")

</div>

Okay…

look at loadTable first, probably with Header

Then see tutorial data on the website

Your csv can be located in the data folder of your sketch

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [February 15, 2021, 10:26pm UTC](https://discourse.processing.org/t/basic-search-box-query-results/27851/5 "2021-02-15T22:26:21Z")

</div>

A simple text input can be done in function keyPressed() with ()

See reference

So myInput += key;

and on Enter submit and start search

See Table in the reference
