hi, i'm new to oracle. i am using stored functions using oracle xe and php 5.1.x. my problem is i can't get the value i wanted to be returned by my class function. kindly check my code and stored function below, thanks!

oracle xe stored functions:
CREATE OR REPLACE
FUNCTION FN_USERBUILDING
(usrName IN VARCHAR2, usrPassword IN VARCHAR2, usrBldg IN VARCHAR2)
RETURN NUMBER IS
varRow NUMBER;
BEGIN
SELECT COUNT(*)
INTO
varRow
FROM
Users T1,
BuildingUsers T2,
Building T3
WHERE
(((T1.UserName = T2.UserName AND T2.BldgID = T3.BldgID)
AND ((T1.UserName = usrName AND T1.Password = usrPassword)
AND T2.BldgID = usrBldg)));

RETURN (varRow);
END;

and my php code is....
private function verify_user()
{

$qry = "declare varVal number; begin varVal := fn_userbuildingmyuserid,:mypassword,:mybuilding); end;";
try
{
$stmt = $this->connStr->PrepareSP($qry);

//$this->connStr->BeginTrans();
$this->connStr->InParameter($stmt,$this->user,'myuserid');
$this->connStr->InParameter($stmt,$this->pwd,'mypassword');
$this->connStr->InParameter($stmt,$this->bldg,'mybuilding');
//$this->connStr->OutParameter($stmt,'getrow',$ret);
$rs = $this->connStr->Execute($stmt);
// here i'm trying to get some values to be returned...
while (!$rs->EOF)
{
echo $rs->fields[0];
$rs->MoveNext();
}

return true;
}
catch (Exception $e)
{
$this->connStr->RollbackTrans();
$this->errorMsgs[0] = $e->getMessage().'<br /><strong>Trace String: </strong>'.$e->getTraceAsString();
$this->errorMsgs[1] = $_SERVER['REMOTE_ADDR'];
$this->errorMsgs[2] = $_SERVER['SCRIPT_NAME'];

$this->handle_error($this->errorMsgs);
return false;
exit();
}
}

thanks in advance...