I'm letting users update their name with this code.
$dbh = connect();
$q = $dbh->prepare('UPDATE Users SET username=:name WHERE User_ID=:id LIMIT 1');
$q->bindParam(":id", $loggedInUser->user_id, PDO::PARAM_INT);
$q->bindParam(":name", $_GET['name'], PDO::PARAM_STR);
$q->execute();
A) is this enough to sanitize information?
b) when I put HTML tags in there like <b>name</b>
it actually shows up in bold on my site! Is there an option where I can have PDO strip out all HTML?