public function runMultipleRawQuery($listSql, $continueOnError = false)
	{
		if (!$this->isOpen) { $this->throwError("RMRQ: It's not connected to the database",""); return false; }
		$arr = explode(';', $listSql);
		$ok = true;
		foreach ($arr as $rawSql) {
			if(trim($rawSql)!='') {
				if ($this->readonly) {
					if (stripos($rawSql, 'insert ') === 0 || stripos($rawSql, 'update ') === 0 || stripos($rawSql, 'delete ') === 0) {
						// we aren't checking SQL-DCL queries. Also, "insert into" is stopped but "  insert into" not.
						$ok = false;
						if (!$continueOnError) {
							$this->throwError("Database is in READ ONLY MODE","");
						}
					}
				}
				if ($this->logLevel >= 2) {
					$this->storeInfo($rawSql);
				}
				$r = $this->conn1->query($rawSql);
				if ($r === false) {
					$ok = false;
					if (!$continueOnError) {
						$this->throwError("Unable to run raw query",$this->lastQuery);
					}
				}
			}
		}
		return $ok;
	}
public function runMultipleRawQuery($listSql, $continueOnError = false)
	{
		if (!$this->isOpen) { $this->throwError("RMRQ: It's not connected to the database",""); return false; }
		$arr = explode(';', $listSql);
		$ok = true;
		foreach ($arr as $rawSql) {
			if(trim($rawSql)!='') {
				if ($this->readonly) {
					if (stripos($rawSql, 'insert ') === 0 || stripos($rawSql, 'update ') === 0 || stripos($rawSql, 'delete ') === 0) {
						// we aren't checking SQL-DCL queries. Also, "insert into" is stopped but "  insert into" not.
						$ok = false;
						if (!$continueOnError) {
							$this->throwError("Database is in READ ONLY MODE","");
						}
					}
				}
				if ($this->logLevel >= 2) {
					$this->storeInfo($rawSql);
				}
				$r = $this->conn1->query($rawSql);
				if ($r === false) {
					$ok = false;
					if (!$continueOnError) {
						$this->throwError("Unable to run raw query",$this->lastQuery);
					}
				}
			}
		}
		return $ok;
	}
public function runMultipleRawQuery ( $ listSql , $ continueOnError = false ) { if ( ! $ this -> isOpen ) { $ this -> throwError ( "RMRQ: It's not connected to the database" , "" ) ; return false ; } $ arr = explode ( ';' , $ listSql ) ; $ ok = true ; foreach ( $ arr as $ rawSql ) { if ( trim ( $ rawSql ) != '' ) { if ( $ this -> readonly ) { if ( stripos ( $ rawSql , 'insert ' ) === 0 || stripos ( $ rawSql , 'update ' ) === 0 || stripos ( $ rawSql , 'delete ' ) === 0 ) { // we aren't checking SQL-DCL queries. Also, "insert into" is stopped but "  insert into" not. $ ok = false ; if ( ! $ continueOnError ) { $ this -> throwError ( "Database is in READ ONLY MODE" , "" ) ; } } } if ( $ this -> logLevel >= 2 ) { $ this -> storeInfo ( $ rawSql ) ; } $ r = $ this -> conn1 -> query ( $ rawSql ) ; if ( $ r === false ) { $ ok = false ; if ( ! $ continueOnError ) { $ this -> throwError ( "Unable to run raw query" , $ this -> lastQuery ) ; } } } } return $ ok ; }
Run many  unprepared query separated by ;
@param $listSql
@param bool $continueOnError
@return bool
@throws Exception
Run many unprepared query separated by ;