Hi! I'm having a strange problem when referencing fResult with Yaf.
In my bootstrap, I create the db object: try { $connection = new fDatabase(all my parms);
$connection->connect(); } catch (fAuthorizationException $e) { $e->printMessage(); }
Yaf_Registry::set('db', $connection);
When I need to run a query, I simply run:
$rs = Yaf_Registry::get('db')->query("select whatever");
That works, but I get warnings:
PHP Warning: mysqli_fetch_assoc(): Couldn't fetch mysqli_result PHP Warning: mysqli_close(): Couldn't fetch mysqli
It seems to happen when I call $rs->fetchRow (or a similar method)
Any ideas on what is causing this?
p.s. other than that error, Yaf + Flourish creates an amazingly fast framework!!
Thanks!