isLoggedIn()) { header('location: /login'); exit; } if(!isset($_GET["id"])) { header("Location: ?id=".$_SESSION['user']); } else { $id = (int)$_GET["id"]; } $q = $con->prepare("SELECT * FROM catalog WHERE id = :id"); $q->bindParam(':id',$id,PDO::PARAM_INT); $q->execute(); $item = $q->fetch(); if(!$item) { header('location: /error?err=404'); exit; } ?> header(); ?> <?php echo htmlspecialchars($item["name"]); ?> | <?php echo $sitename; ?>

yes i am still not hired to make html

this item is called

with id

and he costs $

thats all i have to say