/** * @param $query * @return int */ function Insert($query) { //$query=str_replace('%pre%', $this->dbpre, $query); sqlite_query($this->db, $this->sql->Filter($query)); return sqlite_last_insert_rowid($this->db); }
/** * @param $query * @return mixed */ function Insert($query) { //$query=str_replace('%pre%', $this->dbpre, $query); $this->db->query($this->sql->Filter($query)); return $this->db->lastInsertRowID(); }
/** * @param $query * @return int|string */ function Insert($query) { //$query=str_replace('%pre%', $this->dbpre, $query); mysqli_query($this->db, $this->sql->Filter($query)); return mysqli_insert_id($this->db); }