// When the database is finished, this will be retrieved from a static file or something
     $augment_index = linear_augment_search($augment_raw_data, "");
     // Empty string signals the linear search for the augment index
     print "<div class=\"box\">\n";
     print "\n                                    <center><h3>Quick Augment Index</h3>\n                                        <br/>\n                                        <br/>\n                                        <table class=\"resultsTable\">\n                                            <tr>\n                                                <td>\n                                                    <b>Augment Name</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Effect</b>\n                                                <td/>\n                                            </tr>";
     print print_augment_index($augment_index);
     print "</center></div>\n";
     die;
 }
 if (strcasecmp($augment_raw_data[0][$search_result], $_GET["search_term"]) != 0) {
     print "<div class=\"box\">";
     print "The requested augment could not be found in the database. Please check the name and try again. <br/><br/>";
     // Explode the search term by spaces
     $exploded_search_term = explode(" ", $_GET["search_term"]);
     // Run a linear search with the first word of the search term
     $linear_results = linear_augment_search($augment_raw_data, $exploded_search_term[0]);
     $linear_results_count = count($linear_results);
     if ($linear_results_count != 0) {
         print "<br/><br/>";
         print "Did you mean...<br/><br/>";
         print "<ul>";
         for ($i = 0; $i < $linear_results_count; $i++) {
             // Replace spaces with +'s for url link
             print "<li><a href =\"augment_search.php?search_term=" . preg_replace('/\\s+/', '+', $linear_results[$i]) . "\">" . $linear_results[$i] . "</a></li>";
         }
         print "</ul></div>";
     }
     die;
 }
 // Put all the augment's data in its own array
 $augment_data = array();
                        <?php 
if ($_SERVER["REQUEST_METHOD"] == "GET") {
    if (empty($_GET["frame"])) {
        print "<div class=\"box\">\n";
        print "\n                                    <center><h3>Skell Frame Index</h3>\n                                        <br/>\n                                        <br/>\n                                        <table class=\"resultsTable\">\n                                            <tr>\n                                                <td>\n                                                    <b>Frame Name</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Frame Type</b>\n                                                <td/>\n                                            </tr>";
        print print_skell_frame($skell_frame_raw_data);
        print "</center></div>\n";
        die;
    }
    if (strcasecmp($skell_frame_raw_data[0][$search_result], $_GET["frame"]) != 0) {
        print "<div class=\"box\">";
        print "The requested frame could not be found in the database. <br/><br/>";
        // Explode the search term by spaces
        $exploded_frame = explode(" ", $_GET["frame"]);
        // Run a linear search with the first word of the search term
        $linear_results = linear_augment_search($skell_frame_raw_data, $exploded_frame[0]);
        $linear_results_count = count($linear_results);
        if ($linear_results_count != 0) {
            print "<br/><br/>";
            print "Did you mean...<br/><br/>";
            print "<ul>";
            for ($i = 0; $i < $linear_results_count; $i++) {
                // Replace spaces with +'s for url link
                print "<li><a href =\"skell_frame_list.php?frame=" . preg_replace('/\\s+/', '+', $linear_results[$i]) . "\">" . $linear_results[$i] . "</a></li>";
            }
            print "</ul></div>";
        }
        die;
    }
    // Put all the frame's data in its own array
    $skell_frame_data = array();
                        <?php 
if ($_SERVER["REQUEST_METHOD"] == "GET") {
    if (empty($_GET["gear"])) {
        print "<div class=\"box\">\n";
        print "\n                                    <center><h3>Ground Gear Index</h3>\n                                        <br/>\n                                        <br/>\n                                        <table class=\"resultsTable\">\n                                            <tr>\n                                                <td>\n                                                    <b>Gear Name</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Gear Slot</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Maker</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Level</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Defense</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Battle Traits</b>\n                                                <td/>\n                                            </tr>";
        print print_ground_gear($ground_gear_raw_data);
        print "</center></div>\n";
        die;
    }
    if (strcasecmp($ground_gear_raw_data[0][$search_result], $_GET["gear"]) != 0) {
        print "<div class=\"box\">";
        print "The requested gear could not be found in the database. <br/><br/>";
        // Explode the search term by spaces
        $exploded_gear = explode(" ", $_GET["gear"]);
        // Run a linear search with the first word of the search term
        $linear_results = linear_augment_search($ground_gear_raw_data, $exploded_gear[0]);
        $linear_results_count = count($linear_results);
        if ($linear_results_count != 0) {
            print "<br/><br/>";
            print "Did you mean...<br/><br/>";
            print "<ul>";
            for ($i = 0; $i < $linear_results_count; $i++) {
                // Replace spaces with +'s for url link
                print "<li><a href =\"ground_gear_list.php?gear=" . preg_replace('/\\s+/', '+', $linear_results[$i]) . "\">" . $linear_results[$i] . "</a></li>";
            }
            print "</ul></div>";
        }
        die;
    }
    // Put all the gear's data in its own array
    $ground_gear_data = array();
                        <?php 
if ($_SERVER["REQUEST_METHOD"] == "GET") {
    if (empty($_GET["superweapon"])) {
        print "<div class=\"box\">\n";
        print "\n                                    <center><h3>Skell Superweapon Index</h3>\n                                        <br/>\n                                        <br/>\n                                        <table class=\"resultsTable\">\n                                            <tr>\n                                                <td>\n                                                    <b>Weapon Name</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Slot</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Lv</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Force</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Attribute</b>\n                                                <td/>\n                                                <td>\n                                                    <b>Battle Traits</b>\n                                                <td/>\n                                            </tr>";
        print print_superweapons($superweapons_raw_data);
        print "</center></div>\n";
        die;
    }
    if (strcasecmp($superweapons_raw_data[0][$search_result], $_GET["superweapon"]) != 0) {
        print "<div class=\"box\">";
        print "The requested superweapon could not be found in the database. <br/><br/>";
        // Explode the search term by spaces
        $exploded_superweapons = explode(" ", $_GET["superweapon"]);
        // Run a linear search with the first word of the search term
        $linear_results = linear_augment_search($superweapons_raw_data, $exploded_superweapons[0]);
        $linear_results_count = count($linear_results);
        if ($linear_results_count != 0) {
            print "<br/><br/>";
            print "Did you mean...<br/><br/>";
            print "<ul>";
            for ($i = 0; $i < $linear_results_count; $i++) {
                // Replace spaces with +'s for url link
                print "<li><a href =\"superweapon_list.php?superweapon=" . preg_replace('/\\s+/', '+', $linear_results[$i]) . "\">" . $linear_results[$i] . "</a></li>";
            }
            print "</ul></div>";
        }
        die;
    }
    // Put all the gear's data in its own array
    $superweapons_data = array();