Ejemplo n.º 1
0
 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'];
         }
     }
 }
Ejemplo n.º 2
0
 function getAll()
 {
     $sql = $this->getQueryStr(true);
     //echo $sql .'<br>';
     return MySql::query_array($sql);
 }