rendered paste body<?phpinclude 'header.php';if (is_numeric($_GET['category']))$cat_id = $_GET['category'];$sql = "SELECT item.name AS item_name, item.price AS item_price, cat.name AS cat_nameFROM shop_items AS item, shop_category AS catWHERE item.id_category = cat.idAND item.id_category = ".$cat_id."";$res = query($sql_string);$item_list = "<ul>\n";while ($data = mysql_fetch_assoc($res)){$item_list .= '<li>'.$data['item_name'].' ('.$data['item_price'].")</li>\n";$cat_name = $data['cat_name'];}$item_list .= "</ul>";echo "<h1>$cat_name</h1>\n$item_list";include 'footer.php';?>