Browse Source

almost there

development
mauirixxx 7 years ago
parent
commit
76fe71e8aa
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      list.php
  2. +1
    -1
      search.php

+ 1
- 1
list.php View File

@@ -18,7 +18,7 @@ if (isset($_SESSION['userid'])){
echo '<TR><TD>Pop #</TD><TD>Pop Name</TD><TD>Date Added</TD><TD>Pop Collection</TD></TR>';
if (mysqli_num_rows($result) > 0) {
while ($row = $result->fetch_array()){
echo '<TR><TD><A HREF="edit.php?id=' . $row['funkoid'] . '">' . $row['popno'] . '</A></TD><TD>' . $row['popname'] . '</TD><TD>' . $row['inserteddate'] . '</TD><TD><A HREF="search.php?cid=' . $row['popcollectionid'] . '">' . $row['popcollection'] . '</A></TD></TR>';
echo '<TR><TD><A HREF="edit.php?id=' . $row['funkoid'] . '">' . $row['popno'] . '</A></TD><TD>' . $row['popname'] . '</TD><TD>' . $row['inserteddate'] . '</TD><TD><A HREF="search.php?cid=' . $row['popcollectionid'] . '&search=group">' . $row['popcollection'] . '</A></TD></TR>';
}
}
echo '</TABLE>';


+ 1
- 1
search.php View File

@@ -3,7 +3,7 @@ $pagetitle = "Funko Pop Search";
include_once ('header.php');
if (isset($_SESSION['userid']) && ($_SESSION['username'])) {
echo '<BODY onLoad="document.funkosearch.searchname.focus()">';
$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);


Loading…
Cancel
Save