Hi
I am having problems returning a reference from a class function. I have used the '&' with both the declaration and when assigning the result to a variable but it isnt working.
The code looks like the following (Ihave ommited a lot of filler)
class oraConn
{
function &connect($db,$query){
$result = odbc_exec($conn = odbc_connect("$dsn","$this->user","$this->pass");
return $result;
}
}
and I call the function with
$cidLookup= new oraConnect;
$result = & $cidLookup->connect('PL',$query1);
But this isnt return the result reference in a way that works... any help would be appreciated.
Thanks
Adam