require_once('include/datetime.php');
/**
- *
- * MySQL database class
+ * @class MySQL database class
*
* For debugging, insert 'dbg(1);' anywhere in the program flow.
* dbg(0); will turn it off. Logging is performed at LOGGER_DATA level.
}
}
+ /**
+ * Checks if $array is a filled array with at least one entry.
+ *
+ * @param $array mixed A filled array with at least one entry
+ * @return Whether $array is a filled array
+ */
+ public function is_result ($array) {
+ return (is_array($array) && count($array) > 0);
+ }
+
function __destruct() {
if ($this->db)
if($this->mysqli)
function dba_timer() {
return microtime(true);
}
-