This is the script that sets the sessions. I have also tryed echoing $row[‘name’] how ever nothing shows up. But when i print_r(row[0]) an array shows up correctly
FetchAll() brings back an array (PDO, right?) Judging by your code you only wanted one row, so change to fetch() otherwise, try accessing the first record in your array of results like this:
$message .= $row[0]['name']."You have been logged in!";