function loadvars() { $session = $this->getSessionID(); $result = MySql::query_array("SELECT * FROM " . $this->session_vars_table . " WHERE session='" . $this->getSessionID() . "'"); if ($result) { while (list($key, $val) = each($result)) { $GLOBALS[$val['name']] = $val['value']; $this->variables[$val['name']] = $val['value']; } } }
function getAll() { $sql = $this->getQueryStr(true); //echo $sql .'<br>'; return MySql::query_array($sql); }