Creating a form to search the database for a specific title
<p>I'm trying to create a form so I can search a database for a specific title, but whenever I search nothing happens, I'm not sure how to connect to the database. Here's the link to the app:<a href="https://web-seanakiyama.c9users.io/Week%2011/Index3.php" rel="nofollow">https://web-seanakiyama.c9users.io/Week%2011/Index3.php</a>. Could someone help me figure this out, thankyou!    </p>

<pre><code>&lt;!DOCTYPE html&gt;

require_once “week11.php”;

$search = "TITLE";
getGames($search);


&lt;?php
$data = [
        ["TITLE" =&gt; "Counterstrike: Global Offensive", "DEVELOPER" =&gt; "Valve", "PUBLISHER" =&gt; "Valve", "PRICE" =&gt; 19.99, "PLATFORM" =&gt; "PC"],
        ["TITLE" =&gt; "Final Fantasy XV", "DEVELOPER" =&gt; "Square Enix", "PUBLISHER" =&gt; "Square Enix", "PRICE" =&gt; 99.99, "PLATFORM" =&gt; "PS4"],
        ["TITLE" =&gt; "Halo", "DEVELOPER" =&gt; "Bungie", "PUBLISHER" =&gt; "Microsoft", "PRICE" =&gt; 49.99, "PLATFORM" =&gt; "Xbox"],
        ["TITLE" =&gt; "Battlefield 4", "DEVELOPER" =&gt; "EA Digital Illusions", "PUBLISHER" =&gt; "EA", "PRICE" =&gt; 79.99, "PLATFORM" =&gt; "PC"]
]
?&gt;

&lt;html&gt;
&lt;head&gt;
    &lt;link type='text/css' rel='stylesheet' href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;
        &lt;div class="jumbotron"&gt;                
            &lt;div class="container"&gt;
                &lt;h1&gt;Games&lt;/h1&gt;
            &lt;div class="container"&gt;
                &lt;div id="Search"&lt;/div&gt;
                    &lt;form&gt;
                        &lt;form class="form-inline"&gt;
                    &lt;form action="index.php" method="get"&gt;
                    &lt;fieldset&gt;
                        &lt;label&gt;Title&lt;/label&gt;
                        &lt;input type="text" class="form-control" id="title" name="title"/&gt;
                        &lt;input type="submit" value="Search" class="btn btn-default"/&gt;
                    &lt;/fieldset&gt;
                    &lt;/form&gt;
            &lt;div class="container"&gt;
                &lt;div id="data"&lt;/div&gt;
                &lt;table&gt;
                    &lt;table class="table"&gt;
                        &lt;thead&gt;
                            &lt;th&gt;Game Title&lt;/th&gt;
                            &lt;th&gt;Developer&lt;/th&gt;
                            &lt;th&gt;Publisher&lt;/th&gt;
                            &lt;th&gt;Price&lt;/th&gt;
                            &lt;th&gt;Platform&lt;/th&gt;
                        &lt;/thead&gt;
                &lt;?php
                 foreach($data as $data)
                {
                    echo"&lt;tr&gt;";
                    echo"&lt;td&gt;".$data["TITLE"]."&lt;/td&gt;";
                    echo"&lt;td&gt;".$data["DEVELOPER"]."&lt;/td&gt;";
                    echo"&lt;td&gt;".$data["PUBLISHER"]."&lt;/td&gt;";
                    echo"&lt;td&gt;".$data["PRICE"]."&lt;/td&gt;";
                    echo"&lt;td&gt;".$data["PLATFORM"]."&lt;/td&gt;";
                    echo"&lt;/tr&gt;";
                }
                ?&gt;
                &lt;/table&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>