Please comment on the following code, I need to know if this is what you would consider a prepared statement. My server will not accept question marks as placeholders, it gives me an error when I tried so I ended up doing it this way which does work but I am concerned about getting hacked. Thank you in advance.
//
// Insert data into database
//
$sql = "INSERT INTO users (username) VALUES (:username)";
$stmt = $link->prepare($sql);
$stmt->bindParam(':username', $Param_username);
$Param_username = $username;
$stmt->execute();