function add() { $select = new Sql_Select(new PWEL_SQL()); $select->from("accounts"); $add = new Sql_Add($select); $add->addValues(array("ID" => 2, "username" => "hallo", "passwort" => "abc123"))->add(); }
/** * Returns the account data from current user * * @param string $session * @return resource/bool */ public function GetUserData($session) { $sql = new Sql_Select($this->connectorClass); $result = $sql->from($this->table_name)->where(array($this->column_session => $session))->query(); return $result; }