while ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)) { echo '<li>' . '<a href="claimed.php?category=' . $row['id'] . '">' . $row['name'] . '</a>' . '</li>'; } } ?> </ul> </div> <div class="input-field col s2"> <a class="waves-effect waves-light btn" href='claimed.php'>Show All</a> </div> </div> <?php $random = mt_rand(0, 999999); $user = sha1($random); if (isset($_GET['location'])) { show_location_filter("Claimed", $_GET['location'], $user); } else { if (isset($_GET['category'])) { show_category_filter("Claimed", $_GET['category'], $user); } } ?> <div id="error" style="color:red"></div> <div id="success" style="color:green"></div> <?php #Call a helper function (in includes/helpers.php) to list the database contents if (!isset($_GET['location']) && !isset($_GET['category']) && !isset($_GET['status'])) { show_records_claimed($dbc, $user); } ?> </div>
if ($results) { while ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)) { echo '<li>' . '<a href="lost.php?category=' . $row['id'] . '">' . $row['name'] . '</a>' . '</li>'; } } ?> </ul> </div> <div class="input-field col s3"> <a class="waves-effect waves-light btn" href='lost.php'>Show All</a> </div> </div> <?php $user = sha1("yGq5Ed4FD3E2EpBsU9TzyjQYWtRFCkJmQTZHRheUEnCB4QXUQHKLhxs2GXDUwXy6BX4dVsX3Gjfrf2gvsGzFu2KUvdjsK55qfvsc9RYWAFEhJBgfPKAx7YBntKh4vfDdMpsfb2y7umwafXNLWJWmZj4FqdZD8nwRVA7DyFzn5SGdn9X6j4wzgpSePsPUK6ApCMDhF3gCCR9wTX8fwcE9NSvTzyJz8dVvn4xKJeBN6WbaxBLNeJ2wsgXJSAVELDL2ksHxsFQ9MsRVnHwSzytufG5JVAkRt42WEJjm3DYEwHcHKpfZRrjYu6P23NpNYSCBg2mLzPqV4hwTFqKTqAeypvSMVKhP4jF333jK6QHWrLZngAxnGs78KSgegyvcSn8Z9KfEPQ82vC3QuvXbgdknacyULaTajnd3rcVyuqM7Mk4wjDMXXNYC7bj9AFs76EVNM9nYxveQtKuS2H9XjnmgrM6fDczBWHHKkwZGnGMWSWn2SJxsATV5ZHwcPU3BFd4a"); if (isset($_GET['location'])) { show_location_filter("Lost", $_GET['location'], $user); } else { if (isset($_GET['category'])) { show_category_filter("Lost", $_GET['category'], $user); } } ?> <div id="error" style="color:red"></div> <?php #Call a helper function (in includes/helpers.php) to list the database contents if (!isset($_GET['location']) && !isset($_GET['category'])) { show_records_lost($dbc); } ?> </div> </main>
while ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)) { echo '<li>' . '<a href="index.php?status=' . $row['id'] . '">' . $row['status'] . '</a>' . '</li>'; } } ?> </ul> </div> <div class="input-field col s2"> <a class="waves-effect waves-light btn" href='index.php'>Show All</a> </div> </div> <?php $random = mt_rand(0, 999999); $user = sha1($random); if (isset($_GET['location'])) { show_location_filter("all", $_GET['location'], $user); } else { if (isset($_GET['category'])) { show_category_filter("all", $_GET['category'], $user); } else { if (isset($_GET['status'])) { show_status_filter($_GET['status']); } } } ?> <div id="error" style="color:red"></div> <div id="success" style="color:green"></div> <?php #Call a helper function (in includes/helpers.php) to list the database contents if (!isset($_GET['location']) && !isset($_GET['category']) && !isset($_GET['status'])) {
if ($results) { while ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)) { echo '<li>' . '<a href="found.php?category=' . $row['id'] . '">' . $row['name'] . '</a>' . '</li>'; } } ?> </ul> </div> <div class="input-field col s3"> <a class="waves-effect waves-light btn" href='found.php'>Show All</a> </div> </div> <?php $user = sha1("yGq5Ed4FD3E2EpBsU9TzyjQYWtRFCkJmQTZHRheUEnCB4QXUQHKLhxs2GXDUwXy6BX4dVsX3Gjfrf2gvsGzFu2KUvdjsK55qfvsc9RYWAFEhJBgfPKAx7YBntKh4vfDdMpsfb2y7umwafXNLWJWmZj4FqdZD8nwRVA7DyFzn5SGdn9X6j4wzgpSePsPUK6ApCMDhF3gCCR9wTX8fwcE9NSvTzyJz8dVvn4xKJeBN6WbaxBLNeJ2wsgXJSAVELDL2ksHxsFQ9MsRVnHwSzytufG5JVAkRt42WEJjm3DYEwHcHKpfZRrjYu6P23NpNYSCBg2mLzPqV4hwTFqKTqAeypvSMVKhP4jF333jK6QHWrLZngAxnGs78KSgegyvcSn8Z9KfEPQ82vC3QuvXbgdknacyULaTajnd3rcVyuqM7Mk4wjDMXXNYC7bj9AFs76EVNM9nYxveQtKuS2H9XjnmgrM6fDczBWHHKkwZGnGMWSWn2SJxsATV5ZHwcPU3BFd4a"); if (isset($_GET['location'])) { show_location_filter("Found", $_GET['location'], $user); } else { if (isset($_GET['category'])) { show_category_filter("Found", $_GET['category'], $user); } } ?> <div id="error" style="color:red"></div> <?php #Call a helper function (in includes/helpers.php) to list the database contents if (!isset($_GET['location']) && !isset($_GET['category'])) { show_records_found($dbc); } ?> </div> </main>