Zen Follower
- Join Date:
- Mar 2010
- Location:
- Finland
- Posts:
- 465
- Plugin Contributions:
- 0
Post #1 by kalastaja
Why does this simple function not work in my code?
class queryFactoryResult {
...
function FetchObject() {
return @mysqli_fetch_object($this->resource);
}
...
Usage:
$the_query = $db->Execute($query);
...
if ($the_query->RecordCount() > 0) {
$atom = $the_query->FetchObject();
$orders_id[$loop] = $atom->order_id;
...
$loop++;
...