$result[0] could fail with "Undefined array key 0" if the Pdo default fetch mode was associative. Using the reset() function returns the first column, the equivalent of index 0 or whatever the associative key might be. There is only one column to retrieve, so this should always work. Resolves issue #184.
$result[0] could fail with "Undefined array key 0" if the Pdo default fetch mode was associative. Using the reset() function returns the first column, the equivalent of index 0 or whatever the associative key might be. There is only one column to retrieve, so this should always work. Resolves issue #184.