prepare($sql_while);
$stmt_while->execute([
$search_result
]);
while ($row_while = $stmt_while->fetch())
{
$item_id = $row_while['item_id'];
}
} // END OF ELSE RUN FOR SEARCH
} // DID SEARCH QUERY GO THROUGH?
// GET CREATURE ID
if(
!empty($_GET['id'])
){
$item_id = $_GET['id'];
$org_item_id = $item_id;
}
// WHAT TO DO IF NO ID IS SET
if(
!isset($item_id)
){
echo "No item ID.";
exit;
}
$item_arr = discern_item_id($item_id);
$item_arr['item_name'][0] = $item_arr['item_name'][0] ?? $item_arr['inventory_name'][0] ?? ''; // for inventory name stuff
// QUERY CARD VARIABLES
include('/var/www/html/options/card_lists/card_item_types_variables_inc.php');
// PAGE TITLE
$page_title = $item_arr['item_name'][0]." | ".$site_name;
// HEADER
require_once('/var/www/html/includes/template/template_page_header.php');
?>