diff --git a/list.php b/list.php
index 96f17ea..c0b7ca7 100644
--- a/list.php
+++ b/list.php
@@ -18,7 +18,7 @@ if (isset($_SESSION['userid'])){
echo '
| Pop # | Pop Name | Date Added | Pop Collection |
';
if (mysqli_num_rows($result) > 0) {
while ($row = $result->fetch_array()){
- echo '| ' . $row['popno'] . ' | ' . $row['popname'] . ' | ' . $row['inserteddate'] . ' | ' . $row['popcollection'] . ' |
';
+ echo '| ' . $row['popno'] . ' | ' . $row['popname'] . ' | ' . $row['inserteddate'] . ' | ' . $row['popcollection'] . ' |
';
}
}
echo '';
diff --git a/search.php b/search.php
index c11741e..cb901e8 100644
--- a/search.php
+++ b/search.php
@@ -3,7 +3,7 @@ $pagetitle = "Funko Pop Search";
include_once ('header.php');
if (isset($_SESSION['userid']) && ($_SESSION['username'])) {
echo '';
- $searchtype = (isset($_POST['stype']) ? $_POST['stype'] : null);
+ $searchtype = (isset($_POST['stype']) ? $_POST['stype'] : $_GET['search']);
$searchtype = mysqli_real_escape_string($con, $searchtype);
$searchname = (isset($_POST['searchname']) ? $_POST['searchname'] : null);
$searchname = mysqli_real_escape_string($con, $searchname);