<li><a href=""><?php echo h($user['name']); ?></a></li>
<a href="profile.php?id=<?php echo h($user['id']); ?>">
$sql = "select * from users where id = :id limit 1; $stmt->execute(array(":id"=>(int)$_GET['id'])); $user = $stmt->fetch();
if (!$user) { echo "no such user!"; exit; }
PAGE TOP