= ".++$offset; return $query; } /** * returns the next value in the given sequence * @param string $sequence * @return integer */ public function getNextID($sequence) { $stmt = $this->query("SELECT $sequence.nextval FROM dual"); $data = $stmt->fetch(PDO::FETCH_NUM); return $data[0]; } }