Filter() public method

返回经过过滤的SQL语句
public Filter ( $sql ) : mixed
$sql
return mixed
Beispiel #1
0
 /**
  * @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);
 }
Beispiel #2
0
 /**
  * @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();
 }
Beispiel #3
0
 /**
  * @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);
 }