Have your SQL statement query for the columns that you wish your obtain (not sure where your Date data is coming from though).
$statement = $pdo->prepare('SELECT id, username, email FROM users');
$statement->execute();
while($row = $statement->fetch(\PDO::FETCH_ASSOC)) {
$id = $row['id'];
$username = $row['username'];
$email = $row['email'];
// Validate and do something with this data
}
Also, make sure your syntax is correct. As your example code is not.
Edit:
As mentioned; if you only want data for a specific user, you need to add filtering clauses to your SQL statement.
For example:
$statement = $pdo->prepare('SELECT id, username, email FROM users WHERE id = :id');
$statement->bindValue('id', $someUserId);