Claude Gélinas - 2013-12-30 03:15:52 -
In reply to message 1 from Claude Gélinas
Update, This is what I want to do and what I get:
in my php script:
$db = new MySQL();
...
$result = myfunc($a,$b,$db)
function myfunc($a,$b,$obj){
var_dump ($obj); // to see if $db is passed corectly
...
$sql = "select......";
$res = $obj->QueryArray($sql,MYSQLI_ASSOC);
...
return something;
}
var_dump is dumping the $obj correctly. It's the same if I dump it inside the myfunc or directly in the php script.
but I dont have access to the QueryArray method in myfunc
$res = false always
Ihave access to QuerryArray in the php script.
How can I get access to QuerryArray or any other method in myfunc ^