src/Neuron/Auth/MySQLConnection.php
function getOne($sql, $params = array())
    {
        //echo 'get one --- ';

        $data = $this->query ($sql, $params);

        if (count ($data) > 0)
        {
            $data = array_values ($data[0]);
            return $data[0];
        }
        return false;
    }
function getOne($sql, $params = array())
    {
        //echo 'get one --- ';

        $data = $this->query ($sql, $params);

        if (count ($data) > 0)
        {
            $data = array_values ($data[0]);
            return $data[0];
        }
        return false;
    }
function getOne ( $ sql , $ params = array ( ) ) { //echo 'get one --- '; $ data = $ this -> query ( $ sql , $ params ) ; if ( count ( $ data ) > 0 ) { $ data = array_values ( $ data [ 0 ] ) ; return $ data [ 0 ] ; } return false ; }
Run an SQL query and return the first column of the first row
of the result set, if any.

@param string $sql An SQL string with placeholders.  The
placeholders are assumed to be specific to the database engine
for this connection.

@param array $params An array of parameters to insert into the
SQL string using this connection's escaping mechanism.

@return mixed $result The value of the first column of the
first row of the result set.  False if no such result was
found.
Run an SQL query and return the first column of the first row of the result set if any .